mutter/clutter/eglx
Emmanuele Bassi 277d86f654 Preserve ordering when placing synthetic events in the queue
When we are in the the event translation function sometimes we need to
synthesise events: the double and triple click events are synthetic events
placed on the queue after a sequence of events has been received, for
instance.

Until now, the events were placed on the queue after the translation from
the native events was successful. This led to a loss of ordering because
we put the synthesised event on the queue before the last event that
triggered it.

This patch puts the events on the queue before translating them, with a
"pending" flag set; if the translation sequence is completed then the flag
is removed - otherwise the event is removed from the queue altogether. The
queue manipulation functions have been modified to ignore the "pending"
flag when looking for events.

This patch also adds a private structure overlayed on the ClutterEvent
struct so that we can extend the events with private data without exposing
it in the public API.
2007-08-21 15:48:13 +00:00
..
clutter-backend-egl.c 2007-08-02 Emmanuele Bassi <ebassi@openedhand.com> 2007-08-02 09:58:18 +00:00
clutter-backend-egl.h 2007-07-06 Matthew Allum <mallum@openedhand.com> 2007-07-06 11:40:59 +00:00
clutter-eglx.h 2007-07-06 Matthew Allum <mallum@openedhand.com> 2007-07-06 14:08:03 +00:00
clutter-event-egl.c Preserve ordering when placing synthetic events in the queue 2007-08-21 15:48:13 +00:00
clutter-stage-egl.c 2007-07-06 Matthew Allum <mallum@openedhand.com> 2007-07-06 14:08:03 +00:00
clutter-stage-egl.h 2007-07-06 Matthew Allum <mallum@openedhand.com> 2007-07-06 11:40:59 +00:00
Makefile.am 2007-07-06 Matthew Allum <mallum@openedhand.com> 2007-07-06 14:08:03 +00:00