<table><tr><td style="">romangg created this revision.<br />romangg added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />romangg requested review of this revision.
</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/D29024">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Besides the KWayland output-management protocol there exist other protocol<br />
extensions for output-management, for example wlroot's<br />
wlr-output-management-unstable-v1 and kwinft_output_management_unstable_v1<br />
protocols.</p>

<p>This patch refactors the Wayland backend such that alternative extensions can<br />
be added in the future in an encaplusated way and are instantiated through a<br />
plugin system.</p>

<p>All available Wayland backend plugins are fired up in parallel and the first to<br />
return success will be used while all others are rejected instantly. In theory<br />
this is racy if a compositor supports more than one of the supported output-<br />
management protocols, but there is none out at the moment and it is unlikely to<br />
happen in the future.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested with KWin's Wayland session.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R110 KScreen Library</div></div></div><br /><div><strong>BRANCH</strong><div><div>wayland-plugins</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29024">https://phabricator.kde.org/D29024</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CONTRIBUTING.md<br />
backends/kwayland/CMakeLists.txt<br />
backends/kwayland/plugins/CMakeLists.txt<br />
backends/kwayland/plugins/kwayland/CMakeLists.txt<br />
backends/kwayland/plugins/kwayland/kwayland.json<br />
backends/kwayland/plugins/kwayland/kwayland_interface.cpp<br />
backends/kwayland/plugins/kwayland/kwayland_interface.h<br />
backends/kwayland/plugins/kwayland/kwayland_output.cpp<br />
backends/kwayland/plugins/kwayland/kwayland_output.h<br />
backends/kwayland/wayland_interface.cpp<br />
backends/kwayland/wayland_interface.h<br />
backends/kwayland/waylandbackend.cpp<br />
backends/kwayland/waylandbackend.h<br />
backends/kwayland/waylandconfig.cpp<br />
backends/kwayland/waylandconfig.h<br />
backends/kwayland/waylandoutput.cpp<br />
backends/kwayland/waylandoutput.h<br />
backends/kwayland/waylandscreen.cpp</div></div></div><br /><div><strong>To: </strong>romangg, Plasma<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>