forked from AuroraMiddleware/gtk
[gdk/directfb] Made dfb_events_dispatch() thread save
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=591438
This commit is contained in:
parent
d0083b5df3
commit
ee2c797e70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user