<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma on Wayland.<br />Restricted Application added subscribers: kwin, plasma-devel.<br />Restricted Application added projects: Plasma on Wayland, KWin.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2233" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Most platforms like the nested and virtual do not handle the outputs<br />
themselves and WaylandServer announces the Outputs to Wayland.</p>

<p>So far this was static: at startup it got announced once to Wayland<br />
and any changes were not catched.</p>

<p>This change makes WaylandServer listen to changes to the Screens and<br />
sync them to Wayland.</p>

<p>Unfortunately KWin's internal Screen information is not sufficient to<br />
properly synchronize this to Wayland and also Wayland by not supporting<br />
adding/removing modes does not help.</p>

<p>Thus the solution implemented here is to add new outputs reflecting the<br />
changes and then removing the old ones. This creates situations with more<br />
outputs being present than actually there, but prevents that there are<br />
no outputs at all.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Auto test added which verifies this for the virtual platform</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>announce-output-changes-to-wayland</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2233" rel="noreferrer">https://phabricator.kde.org/D2233</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/integration/CMakeLists.txt<br />
autotests/integration/screen_changes_test.cpp<br />
plugins/platforms/virtual/screens_virtual.cpp<br />
wayland_server.cpp<br />
wayland_server.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma on Wayland<br /><strong>Cc: </strong>plasma-devel, kwin, hardening, jensreuterberg, abetts, sebas<br /></div>