compositor-x11: Use check function to make sure we handle all events
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 21 Apr 2011 18:51:44 +0000 (14:51 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 21 Apr 2011 18:54:33 +0000 (14:54 -0400)
commitee72482a0076a571b5068423a610d0b8c03b2b58
treebf86ba085e2ee6b62a14fe6a55466e4a0ebf934e
parent7cbdb64ab6014655f915776de5188c0f7f04ee70
compositor-x11: Use check function to make sure we handle all events

If somebody else did an X11 round trip, that could leave events in the
XCB buffer that we wouldn't see until the next X event came in.  The new
event source check function lets us check the XCB queue after dispatching
and this way we'll see events we need to deal with right away.
compositor/compositor-x11.c