[Xcb] xcb_set_screen_saver weird behavior
Alan Coopersmith
alan.coopersmith at oracle.com
Mon Mar 10 13:50:18 PDT 2014
On 03/10/14 08:32 AM, Philip Rushik wrote:
> Found this in xcb/xproto.h
>
> xcb_set_screen_saver (xcb_connection_t *c /**< */,
> int16_t timeout /**< */,
> int16_t interval /**< */,
> uint8_t prefer_blanking /**< */,
> uint8_t allow_exposures /**< */);
>
> Found a documentation stub here:
> http://www.x.org/releases/X11R7.7/doc/man/man3/xcb_set_screen_saver.3.xhtml
>
>
> I read in the xscreensaver source that xsetscreensaver (seems to be the xlib
> equivalent) takes the number of seconds until the screensaver should kick in. I
> tried that but still get no screensaver events. However, I figured it might be
> milliseconds instead, so I tried 60000 for the timeout and then I get a
> screensaver event immediately after calling xcb_set_screen_saver() and then
> nothing ever again, but obviously the function does _something_.
Since it's a thin wrapper around the protocol, the best docs for what it does
are likely the protocol spec:
http://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#requests:SetScreenSaver
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
More information about the Xcb
mailing list