mutter/clutter/x11
Emmanuele Bassi 25c6ebbb2c x11: Discard the LeaveNotify for off-stage ButtonRelease
If the user presses a button on a pointer device and then moves out the
Stage X11 will emit the following events:

  LeaveNotify ➔ MotionNotify ... ➔ ButtonRelease ➔ LeaveNotify

The second LeaveNotify differs from the first by the state field.

Unfortunately, ClutterCrossingEvent doesn't have a modifier_state field
like other events, so we cannot provide a way for programmatically
distinguishing them from a Clutter perspective. This is also an X11-ism
we might not even want to replicate on every backend with sane
enter/leave semantics.

For this reason we should check inside the X11 event processing if the
pointer device has already left the Stage and ignore the second
LeaveNotify.
2010-01-20 00:38:09 +00:00
..
clutter-backend-x11-private.h
clutter-backend-x11.c device: Make InputDevice an object and subclass it for X11 2010-01-20 00:38:08 +00:00
clutter-backend-x11.h Port the X11 backend to the Device Manager 2010-01-20 00:38:07 +00:00
clutter-event-x11.c x11: Discard the LeaveNotify for off-stage ButtonRelease 2010-01-20 00:38:09 +00:00
clutter-input-device-x11.c device: Make InputDevice an object and subclass it for X11 2010-01-20 00:38:08 +00:00
clutter-input-device-x11.h device: Make InputDevice an object and subclass it for X11 2010-01-20 00:38:08 +00:00
clutter-stage-x11.c x11: Switch back to RGB visuals by default 2010-01-08 15:09:21 +00:00
clutter-stage-x11.h [stage-x11] Ensure viewport is initialized before first stage paint 2009-11-02 16:55:02 +00:00
clutter-x11-enum-types.c.in 2008-06-30 Emmanuele Bassi <ebassi@openedhand.com> 2008-06-30 15:03:42 +00:00
clutter-x11-enum-types.h.in 2008-06-30 Emmanuele Bassi <ebassi@openedhand.com> 2008-06-30 15:03:42 +00:00
clutter-x11-texture-pixmap.c x11 tfp: Plug a leak 2010-01-05 14:22:35 +00:00
clutter-x11-texture-pixmap.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-x11.h Port the X11 backend to the Device Manager 2010-01-20 00:38:07 +00:00
clutter-x11.pc.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
Makefile.am device: Make InputDevice an object and subclass it for X11 2010-01-20 00:38:08 +00:00