[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 06cb28f: Fix bug#23462: Crash when iconifying fra
From: |
Anders Lindgren |
Subject: |
[Emacs-diffs] emacs-25 06cb28f: Fix bug#23462: Crash when iconifying frame on OS X. |
Date: |
Mon, 16 May 2016 18:43:12 +0000 (UTC) |
branch: emacs-25
commit 06cb28ff3f24a29fa140d8af747d10abeed44293
Author: Alan Third <address@hidden>
Commit: Anders Lindgren <address@hidden>
Fix bug#23462: Crash when iconifying frame on OS X.
* src/nsterm.m (x_iconify_frame): Block input while miniaturize is
running.
---
src/nsterm.m | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index 34c5395..e6a10b8 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 06cb28f: Fix bug#23462: Crash when iconifying frame on OS X.,
Anders Lindgren <=