[Xcb] [PATCH 5/7] Add event queue splitting

Eric Anholt eric at anholt.net
Wed Nov 6 17:07:47 PST 2013


Peter Harris <pharris at opentext.com> writes:

> On 2013-11-05 19:41, Keith Packard wrote:
>> This allows apps to peel off certain XGE events into separate queues
>> for custom handling. Designed to support the Present extension
>> 
>> Signed-off-by: Keith Packard <keithp at keithp.com>
>
> Re: xcb_register_for_special_event, xcb_unregister_for_special_event,
> xcb_check_for_special_event, and xcb_wait_for_special_event.
>
> There was some push-back the last time something similar to this came
> up, on the theory that it should be in a separate library from xcb[1].
> That said, we may have reached the point where it's just too useful to
> not have in libxcb.

The magic extra library is a non-solution.  The user implementing event
handling doesn't know what GLX/EGL is doing, so you can't rely on them
using the magic extra library.

This implementation is basically the "fix events somehow" option in that
cited email: the new events have the multiplexing token (the eid field),
and this is the code for getting those events to the code that
registered for the event.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131106/1eb754d7/attachment.pgp>


More information about the xorg-devel mailing list