1
0
Fork 0
mutter-performance-source/clutter/glx
Emmanuele Bassi 609560b1cb glx: Unconditionally select X11/GLX events
Currently, we select input events and GLX events conditionally,
depending on whether the user has disabled event retrieval.

We should, instead, unconditionally select input events even with event
retrieval disabled because we need to guarantee that the Clutter
internal state is maintained when calling clutter_x11_handle_event()
without requiring applications or embedding toolkits to select events
themselves. If we did that, we'd have to document the events to be
selected, and also update applications and embedding toolkits each time
we added a new mask, or a new class of events - something that's clearly
not possible.

See:

  http://bugzilla.clutter-project.org/show_bug.cgi?id=998

for the rationale of why we did conditional selection. It is now clear
that a compositor should clear out the input region, since it cannot
assume a perfectly clean slate coming from us.

See:

  http://bugzilla.clutter-project.org/show_bug.cgi?id=2228

for an example of things that break if we do conditional event
selection on GLX events. In that specific case, the X11 server ≤ 1.8
always pushed GLX events on the queue, even without selecting them; this
has been fixed in the X11 server ≥ 1.9, which means that applications
like Mutter or toolkit integration libraries like Clutter-GTK would stop
working on recent Intel drivers providing the GLX_INTEL_swap_event
extension.

This change has been tested with Mutter and Clutter-GTK.
2010-08-03 16:11:52 +01:00
..
clutter-backend-glx.c Clean up the private flags for ClutterActor 2010-07-21 16:10:46 +01:00
clutter-backend-glx.h backend-glx: Avoid vblank waits/glFinish calls when throttling blits 2010-06-09 02:11:17 +01:00
clutter-event-glx.c Ignore unexpected GLX_BufferSwapComplete 2010-05-05 12:00:40 +01:00
clutter-event-glx.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
clutter-glx-texture-pixmap.c clutter-{glx,x11}-texture-pixmap: Use CoglTexturePixmapX11 2010-06-22 12:22:48 +01:00
clutter-glx-texture-pixmap.h docs: Documentation fixes 2010-03-02 11:12:32 +00:00
clutter-glx.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
clutter-stage-glx.c glx: Unconditionally select X11/GLX events 2010-08-03 16:11:52 +01:00
clutter-stage-glx.h Adds initial clipped redraw support to Clutter 2010-03-02 17:19:11 +00:00
Makefile.am Add -DCOGL_ENABLE_EXPERIMENTAL_API to Makefiles for Cogl and x11/glx 2010-06-22 12:22:47 +01:00