mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
277d86f654
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. |
||
---|---|---|
.. | ||
clutter-backend-sdl.c | ||
clutter-backend-sdl.h | ||
clutter-event-sdl.c | ||
clutter-sdl.h | ||
clutter-stage-sdl.c | ||
clutter-stage-sdl.h | ||
Makefile.am |