[Xcb] xcb_set_screen_saver weird behavior

Alan Coopersmith alan.coopersmith at oracle.com
Tue Mar 11 13:44:33 PDT 2014


On 03/11/14 12:41 PM, Philip Rushik wrote:
> And I was like, "event_base?"
>
> turns out that gets set here:
>
> XScreenSaverQueryExtension (dpy, &event_base, &error_base)
>
>
> (which, by the way, is a function never defined in any of the X documentation
> that I could find).

http://www.x.org/releases/X11R7.7/doc/scrnsaverproto/saver.html#C_language_binding

Doesn't look like that ever got translated into a man page for easier finding
on the system though.

> I have been looking for the XCB_SCREENSAVER_NOTIFY or
> ScreenSaverNotify event, which seems to be
> defined as 0. When I should have been looking instead for the event_base
> returned by XScreenSaverQueryExtension (which I haven't yet figured out how to
> do in XCB, but I think it will have to do with xcb_query_extension).

Right - extension events are dynamically assigned a range based on the set of
extensions active in a given X server configuration/build, and the 0 is the
offset into the range assigned to that extension.

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the Xcb mailing list