Create a dedicated X11Filter for Client sync events and move it to X11 platform
ClosedPublic

Authored by graesslin on Sep 22 2017, 6:39 PM.

Details

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

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin created this revision.Sep 22 2017, 6:39 PM
Restricted Application added a project: Plasma. · View Herald TranscriptSep 22 2017, 6:39 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
This revision was automatically updated to reflect the committed changes.