]> code.delx.au - gnu-emacs/blobdiff - src/nsterm.m
Merge from origin/emacs-25
[gnu-emacs] / src / nsterm.m
index d79e4f4017ccb5bdf8900bbd8af0edd0bb853c53..f2b0d9017707856e0ab4b64a7b5be006e003d0bf 100644 (file)
@@ -1612,7 +1612,12 @@ x_iconify_frame (struct frame *f)
       [[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.  */