>From 356f20b5d8b5809100102797c51f1b54cc8a908e Mon Sep 17 00:00:00 2001 From: Alan Third Date: Mon, 24 Sep 2018 14:04:54 +0100 Subject: [PATCH] Fix crash on flush to display (bug#32812) * src/nsterm.m (ns_flush_display): Block input to prevent Emacs IO processing inside AppKit code. --- src/nsterm.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nsterm.m b/src/nsterm.m index b36d847eb3..4c03d35c69 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1252,7 +1252,9 @@ static NSRect constrain_frame_rect(NSRect frameRect, bool isFullscreen) dirty by setNeedsDisplayInRect (in ns_focus), then this will call draw_rect: which will "expose" those areas. */ { + block_input (); [FRAME_NS_VIEW (f) displayIfNeeded]; + unblock_input (); } -- 2.18.0