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:
Richard Hult 2008-04-30 17:46:00 +00:00 committed by Richard Hult
parent 49f341f12c
commit ca9a6075e6
2 changed files with 11 additions and 1 deletions

View File

@ -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:

View File

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