davidedmundson created this revision. davidedmundson added a reviewer: KWin. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. davidedmundson requested review of this revision.
REVISION SUMMARY Usual massive boilerplate. Should allow us to remove the injection in our QPT, as Qt 5.12 implements this protocol directly. Will probably be relevant for other toolkits as it's more standardised than our custom one. Client is mostly 1:1 with the protocol, server side has some tweaking to fit with kwayland turning an event based API into a state based one. TEST PLAN Relevant unit test Tried in modified kwin with our QPT disabled REPOSITORY R127 KWayland BRANCH xdg_deco REVISION DETAIL https://phabricator.kde.org/D17498 AFFECTED FILES autotests/client/CMakeLists.txt autotests/client/test_xdg_decoration.cpp src/client/CMakeLists.txt src/client/protocols/xdg-decoration-unstable-v1.xml src/client/registry.cpp src/client/registry.h src/client/xdgdecoration.cpp src/client/xdgdecoration.h src/server/CMakeLists.txt src/server/display.cpp src/server/display.h src/server/xdgdecoration_interface.cpp src/server/xdgdecoration_interface.h src/server/xdgshell_interface.h src/tools/mapping.txt To: davidedmundson, #kwin Cc: kde-frameworks-devel, michaelh, ngraham, bruns