<div dir="ltr">Found this in xcb/xproto.h<br><div><br>xcb_set_screen_saver (xcb_connection_t *c  /**< */,<br>                      int16_t           timeout  /**< */,<br>                      int16_t           interval  /**< */,<br>

                      uint8_t           prefer_blanking  /**< */,<br>                      uint8_t           allow_exposures  /**< */);<br><br></div><div>Found a documentation stub here: <a href="http://www.x.org/releases/X11R7.7/doc/man/man3/xcb_set_screen_saver.3.xhtml">http://www.x.org/releases/X11R7.7/doc/man/man3/xcb_set_screen_saver.3.xhtml</a><br>

<br><br></div><div>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_.<br>

<br></div><div>I also see this struct in xcb/xproto.h<br><br>typedef struct xcb_set_screen_saver_request_t {<br>    uint8_t  major_opcode; /**<  */<br>    uint8_t  pad0; /**<  */<br>    uint16_t length; /**<  */<br>

    int16_t  timeout; /**<  */<br>    int16_t  interval; /**<  */<br>    uint8_t  prefer_blanking; /**<  */<br>    uint8_t  allow_exposures; /**<  */<br>} xcb_set_screen_saver_request_t;<br><br></div><div>Although I can't figure out how or where it is meant to be used as this seems to be the only reference to it.<br>

<br><br></div><div>Anybody know what is happening here? What do the parameters of xcb_set_screen_saver mean? Is that struct defined but never used?<br><br></div><div>Regards,<br></div><div>--Philip<br></div></div>