[gdk/directfb] Made dfb_events_dispatch() thread save

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=591438
This commit is contained in:
Javier Jardón 2009-11-30 06:01:43 +01:00
parent d0083b5df3
commit ee2c797e70

View File

@ -184,6 +184,8 @@ dfb_events_dispatch (void)
GdkDisplay *display = gdk_display_get_default ();
GdkEvent *event;
GDK_THREADS_ENTER ();
while ((event = _gdk_event_unqueue (display)) != NULL)
{
if (_gdk_event_func)
@ -191,6 +193,8 @@ dfb_events_dispatch (void)
gdk_event_free (event);
}
GDK_THREADS_LEAVE ();
}
static gboolean