From 74e3eb57637baf5eba9fdbed3eff75bca90fac70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sat, 26 Jan 2008 19:36:04 +0000 Subject: [PATCH] Replace the temporary hack used by ksmserver to detect whether the compositing manager provides logout effect with another temporary hack that is not specific to KWin. CCMAIL: Dennis Kasprzyk svn path=/trunk/KDE/kdebase/workspace/; revision=766848 --- effects/logout.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/effects/logout.cpp b/effects/logout.cpp index b25b6da241..419e4783d0 100644 --- a/effects/logout.cpp +++ b/effects/logout.cpp @@ -33,6 +33,13 @@ LogoutEffect::LogoutEffect() : progress( 0 ) , logout_window( NULL ) { + 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 } void LogoutEffect::prePaintScreen( ScreenPrePaintData& data, int time )