graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY For an X11 window through Xwayland KWin gets a client message with the Surface id. KWin has two code paths for handling that: - Wayland Surface is created after the X11 event - Wayland Surface is created before the X11 event In the first code path in WaylandServer KWin called Toplevel::setSurface, the other code path just updated the m_surface without calling into setSurface. This means the connects for the Surface were not set up, resulting in the worst case in accessing deleted memory after the Surface was destroyed. This change now ensures that setSurface is called from both code paths. That should fix the potential crash and could also be a fix to the problem that sometimes X windows seem to not be damaged correctly. REPOSITORY rKWIN KWin BRANCH events-call-setSurface REVISION DETAIL https://phabricator.kde.org/D1820 AFFECTED FILES events.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland Cc: plasma-devel, kwin, hardening, sebas
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel