2008-04-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/sdl/clutter-stage-sdl.[ch]: Port the SDL stage to the new stage implementation API. * clutter/sdl/clutter-backend-sdl.[ch]: Port the SDL backend to the new backend API. * clutter/sdl/clutter-event-sdl.c: (clutter_event_dispatch): Assign the default stage as the origin of the event.
This commit is contained in:
@ -327,15 +327,15 @@ clutter_event_dispatch (GSource *source,
|
||||
{
|
||||
event = clutter_event_new (CLUTTER_NOTHING);
|
||||
|
||||
event->any.stage = clutter_stage_get_default ();
|
||||
|
||||
if (event_translate (backend, event, &sdl_event))
|
||||
{
|
||||
/* push directly here to avoid copy of queue_put */
|
||||
g_queue_push_head (clutter_context->events_queue, event);
|
||||
}
|
||||
else
|
||||
{
|
||||
clutter_event_free (event);
|
||||
}
|
||||
clutter_event_free (event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user