Google
  Web www.spinics.net

Re: Preventing screensaver when playing movie?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxx , l.lunak@xxxxxxx
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http//www.suse.cz
_______________________________________________
xorg mailing list
xorg@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xorg

[X Forum]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux