diff options
| -rw-r--r-- | src/nsterm.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 34c5395b630..e6a10b89f81 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. */ |