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 <onestone@opencompositing.org>


svn path=/trunk/KDE/kdebase/workspace/; revision=766848
remotes/origin/Plasma/5.0
Luboš Luňák 18 years ago
parent 7d620a3ad8
commit 74e3eb5763
  1. 7
      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 )

Loading…
Cancel
Save