aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2016-05-26 12:41:38 -0700
committerPaul Eggert2016-05-26 12:41:38 -0700
commit17b8d63057af2f1ad930bfe4bcd3aee5dd8996a4 (patch)
tree856f680b3ea6f3a29a02d4fd4bcf3bad270b7ae4
parentfa419c2398349f201cfac89c9754c400b709db29 (diff)
parent06cb28ff3f24a29fa140d8af747d10abeed44293 (diff)
downloademacs-17b8d63057af2f1ad930bfe4bcd3aee5dd8996a4.tar.gz
emacs-17b8d63057af2f1ad930bfe4bcd3aee5dd8996a4.zip
Merge from origin/emacs-25
06cb28f Fix bug#23462: Crash when iconifying frame on OS X.
-rw-r--r--src/nsterm.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index d79e4f4017c..f2b0d901770 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1612,7 +1612,12 @@ x_iconify_frame (struct frame *f)
1612 [[view window] orderOut: NSApp]; 1612 [[view window] orderOut: NSApp];
1613 [[view window] setFrame: t display: NO]; 1613 [[view window] setFrame: t display: NO];
1614 } 1614 }
1615
1616 /* Processing input while Emacs is being minimized can cause a
1617 crash, so block it for the duration. */
1618 block_input();
1615 [[view window] miniaturize: NSApp]; 1619 [[view window] miniaturize: NSApp];
1620 unblock_input();
1616} 1621}
1617 1622
1618/* Free X resources of frame F. */ 1623/* Free X resources of frame F. */