graesslin created this revision. Restricted Application added a project: KWin. Restricted Application added subscribers: kwin, plasma-devel.
REVISION SUMMARY This change introduces a dedicated X11EventFilter for the mouse interception on X11. The filter gets created together with the start of mouse interception and destroyed again when the mouse interception ends. Thus we don't need to check for each event like it was the case so far. Unfortunately the existing methods cannot be removed (yet) as they are still used by TabBox. Needs investigation whether this is actually needed. TEST PLAN Xephyr+kwin_x11+Present Windows REPOSITORY R108 KWin BRANCH effects-mouse-x11-filter REVISION DETAIL https://phabricator.kde.org/D7842 AFFECTED FILES CMakeLists.txt effects.cpp effects.h effects_mouse_interception_x11_filter.cpp effects_mouse_interception_x11_filter.h events.cpp To: graesslin, #kwin, #plasma Cc: plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart