*/event: Never manipulate the event queue directly

Always use _clutter_event_push() instead.
This commit is contained in:
Emmanuele Bassi
2011-01-19 16:34:49 +00:00
parent 400ecdfc81
commit 0f56abf569
4 changed files with 10 additions and 29 deletions

View File

@ -207,14 +207,10 @@ get_modifier_state (WPARAM wparam)
static void
take_and_queue_event (ClutterEvent *event)
{
ClutterMainContext *clutter_context;
clutter_context = _clutter_context_get_default ();
/* The event is added directly to the queue instead of using
clutter_event_put so that it can avoid a copy. This takes
ownership of the event */
g_queue_push_head (clutter_context->events_queue, event);
_clutter_event_push (event, FALSE);
}
static inline void