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:
Emmanuele Bassi
2008-04-25 12:17:01 +00:00
parent 76735c0374
commit 7c3cf35eec
6 changed files with 148 additions and 111 deletions

View File

@ -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);
}
}