graesslin created this revision. Restricted Application added a project: KWin. Restricted Application added subscribers: kwin, plasma-devel.
REVISION SUMMARY The code in events.cpp was problematic as it was called in a Wayland session. So KWin changed outputs, this gets mirrored to XWayland and then KWin reacted on the XRandR event and might have even changed the refresh rate due to that - bad idea. This change moves the code into the already existing X11EventFilter for XRandR events in XRandRScreens. TEST PLAN Run kwin_x11 in gdb on Xephyr, breakpoint in new code and triggered XRandR event REPOSITORY R108 KWin BRANCH xrandr-event-filter REVISION DETAIL https://phabricator.kde.org/D7654 AFFECTED FILES autotests/mock_workspace.h events.cpp options.cpp options.h plugins/platforms/x11/standalone/screens_xrandr.cpp To: graesslin, #kwin, #plasma Cc: plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart, lukas