mutter/clutter/sdl
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-sdl.c 2007-08-02 Emmanuele Bassi <ebassi@openedhand.com> 2007-08-02 09:58:18 +00:00
clutter-backend-sdl.h 2007-05-28 Matthew Allum <mallum@openedhand.com> 2007-05-28 18:49:34 +00:00
clutter-event-sdl.c Preserve ordering when placing synthetic events in the queue 2007-08-21 15:48:13 +00:00
clutter-sdl.h 2007-05-02 Matthew Allum <mallum@openedhand.com> 2007-05-02 20:05:29 +00:00
clutter-stage-sdl.c 2007-06-19 Matthew Allum <mallum@openedhand.com> 2007-06-19 14:10:25 +00:00
clutter-stage-sdl.h 2007-05-02 Matthew Allum <mallum@openedhand.com> 2007-05-02 20:05:29 +00:00
Makefile.am 2007-05-02 Matthew Allum <mallum@openedhand.com> 2007-05-02 20:05:29 +00:00