[Xcb] receiving XRRScreenChangeNotify in xpyb

Christian M. Amsüss christian at amsuess.com
Wed Dec 23 12:28:19 PST 2009


On Wed, Dec 23, 2009 at 02:56:11PM -0500, Peter Harris wrote:
> Unlike Xlib, xcb does not flush the output buffer on your behalf when
> you call wait_for_event. It appears as though you need a call to flush()
> before entering your event loop.

thank you, a conn.flush() after the SelectInput did the trick.

now that i see it working, i'm a bit disappointed that i don't get an
event the instant i (un)plug the VGA cable (only after i call xrandr the
event gets triggered), but that again is no more a xcb concern.

thanks again
chrysn

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20091223/b1829513/attachment.pgp 


More information about the Xcb mailing list