osx: Use _clutter_event_push()
Do not operate directly on the event queue, but use the wrapper call that all backends share.
This commit is contained in:
parent
af22290f0d
commit
cef380040d
@ -213,14 +213,7 @@
|
|||||||
static void
|
static void
|
||||||
take_and_queue_event (ClutterEvent *event)
|
take_and_queue_event (ClutterEvent *event)
|
||||||
{
|
{
|
||||||
ClutterMainContext *clutter_context;
|
_clutter_event_push (event, FALSE);
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user