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
icc-effect-5.14.5
Luboš Luňák 2008-01-26 19:36:04 +00:00
parent 7d620a3ad8
commit 74e3eb5763
1 changed files with 7 additions and 0 deletions

View File

@ -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 )