Preventing screensaver when playing movie?

Lubos Lunak l.lunak at suse.cz
Tue Mar 4 06:18:51 PST 2008


On Tuesday 04 of March 2008, Erik wrote:
> Lubos Lunak skrev:
> > the previous discussion was about XResetScreenSaver(), and that one works
> > with the KDE screensaver (3.5.9).
>
> Could you point to a recent commit that fixed this? (Cause it fails on
> 3.5.8.)

 I can't. The latest changes that are possibly related happened more than a 
year ago, so it's possible that maybe 3.5.5 or older don't work correctly, 
but code from the 3.5.8 tag works correctly with XResetScreenSaver() here as 
well.

 The testing code is here, just in case. Maybe you forgot to flush the X queue 
in your testapp? Here with a 1 minute screensaver timeout and 'sleep 
30; ./a.out' the screensaver kicks in only after 1:30 minutes.

#include <X11/Xlib.h>
int main( int argc, char* argv[] )
    {
    Display* dpy = XOpenDisplay( NULL );
    XResetScreenSaver( dpy );
    XCloseDisplay( dpy );
    }

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http//www.suse.cz



More information about the xorg mailing list