Fix bug#23462: Crash when iconifying frame on OS X.

* src/nsterm.m (x_iconify_frame): Block input while miniaturize is
running.
This commit is contained in:
Alan Third 2016-05-16 20:37:23 +02:00 committed by Anders Lindgren
parent 9ca5dbf947
commit 06cb28ff3f

View file

@ -1612,7 +1612,12 @@ static void hide_bell ()
[[view window] orderOut: NSApp];
[[view window] setFrame: t display: NO];
}
/* Processing input while Emacs is being minimized can cause a
crash, so block it for the duration. */
block_input();
[[view window] miniaturize: NSApp];
unblock_input();
}
/* Free X resources of frame F. */