<table><tr><td style="">nicolasfella created this revision.<br />nicolasfella added reviewers: KDE Connect, graesslin.<br />nicolasfella added a project: KDE Connect.<br />nicolasfella 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/D10779" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The MousepadPlugin contains disjoint codepaths to support X11 and Wayland. Split it into two plugins instead of #ifdef'ing for better maintainability.</p>

<p>Currently both plugins are loaded (when compiled). Is there a way to decide whether to load them on runtime? On Android I just would return false in onCreate, but there seems no aquivalent on the desktop.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested on X and Wayland.<br />
X works fine, Wayland plugin on Wayland too.<br />
X plugin on Wayland crashes, needs to be disabled on runtime.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R224 KDE Connect</div></div></div><br /><div><strong>BRANCH</strong><div><div>mousepad</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10779" rel="noreferrer">https://phabricator.kde.org/D10779</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
plugins/CMakeLists.txt<br />
plugins/mousepad/CMakeLists.txt<br />
plugins/mousepad/mousepadplugin.cpp<br />
plugins/mousepad/mousepadplugin.h<br />
plugins/mousepad_wayland/CMakeLists.txt<br />
plugins/mousepad_wayland/README<br />
plugins/mousepad_wayland/config-mousepad.h.cmake<br />
plugins/mousepad_wayland/kdeconnect_mousepad_wayland.json<br />
plugins/mousepad_wayland/mousepadplugin_wayland.cpp<br />
plugins/mousepad_wayland/mousepadplugin_wayland.h</div></div></div><br /><div><strong>To: </strong>nicolasfella, KDE Connect, graesslin<br /><strong>Cc: </strong>graesslin, KDE Connect, adeen-s, SemperPeritus, ahmedbesbes, daniel.z.tg, jeanv, tfella, aboudhar, seebauer, bugzy, MayeulC, menasshock, ach, apol<br /></div>