mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Don't send nsevents with the gdk lock held, fixes deadlock when doing
2008-04-30 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c: (_gdk_events_queue): Don't send nsevents with the gdk lock held, fixes deadlock when doing manual window resizing with threading enabled. svn path=/trunk/; revision=20055
This commit is contained in:
parent
49f341f12c
commit
ca9a6075e6
@ -1,3 +1,9 @@
|
||||
2008-04-30 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c: (_gdk_events_queue): Don't send
|
||||
nsevents with the gdk lock held, fixes deadlock when doing manual
|
||||
window resizing with threading enabled.
|
||||
|
||||
2008-04-30 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c:
|
||||
|
@ -1948,7 +1948,11 @@ _gdk_events_queue (GdkDisplay *display)
|
||||
if (event)
|
||||
{
|
||||
if (!gdk_event_translate (event))
|
||||
[NSApp sendEvent:event];
|
||||
{
|
||||
GDK_THREADS_LEAVE ();
|
||||
[NSApp sendEvent:event];
|
||||
GDK_THREADS_ENTER ();
|
||||
}
|
||||
|
||||
_gdk_quartz_event_loop_release_event (event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user