From 0265ae48ec0e9fab99a130bcdf5c254a54447db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 18 Mar 2014 08:47:36 +0100 Subject: [PATCH] Completely remove the legacy ksmserver shutdown effect Painting was already disabled in the effect inside ksmserver, thus it was more or less dead code. Let's remove it completely. This also allows to remove the "temporary" hack inside KWin's logout effect. REVIEW: 116869 --- effects/logout/logout.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/effects/logout/logout.cpp b/effects/logout/logout.cpp index 599efcd215..3df5afefa6 100644 --- a/effects/logout/logout.cpp +++ b/effects/logout/logout.cpp @@ -51,15 +51,6 @@ LogoutEffect::LogoutEffect() logoutAtom = XInternAtom(display(), "_KDE_LOGGING_OUT", False); effects->registerPropertyType(logoutAtom, true); - // Block KSMServer's effect - char net_wm_cm_name[ 100 ]; - sprintf(net_wm_cm_name, "_NET_WM_CM_S%d", DefaultScreen(display())); - Atom net_wm_cm = XInternAtom(display(), net_wm_cm_name, False); - Window sel = XGetSelectionOwner(display(), net_wm_cm); - Atom hack = XInternAtom(display(), "_KWIN_LOGOUT_EFFECT", False); - XChangeProperty(display(), sel, hack, hack, 8, PropModeReplace, (unsigned char*)&hack, 1); - // the atom is not removed when effect is destroyed, this is temporary anyway - blurTexture = NULL; blurTarget = NULL; reconfigure(ReconfigureAll);