graesslin created this revision. graesslin added reviewers: KWin, Plasma. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY On Wayland we have the sync disabled as it doesn't work properly. This allows us to also move the sync event handling into the X11 standalone platform. The code is slightly refactored: instead of passing the event to each Client, we search for the matching Client. For that the SyncAlaram struct is added to public section of Client. The method to handle the sync doesn't need the event any more and is moved from events.cpp to client.cpp. TEST PLAN Run Xephyr+kwin_x11, resized a window and verified through gdb breakpoint that the sync still works BRANCH sync-filter REVISION DETAIL https://phabricator.kde.org/D7942 AFFECTED FILES client.cpp client.h events.cpp plugins/platforms/x11/standalone/CMakeLists.txt plugins/platforms/x11/standalone/sync_filter.cpp plugins/platforms/x11/standalone/sync_filter.h plugins/platforms/x11/standalone/x11_platform.cpp plugins/platforms/x11/standalone/x11_platform.h To: graesslin, #kwin, #plasma Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart