[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 3db0dc2 1/2: Fix crash when closing fullscreen fr
From: |
Alan Third |
Subject: |
[Emacs-diffs] emacs-26 3db0dc2 1/2: Fix crash when closing fullscreen frame on macOS (bug#28661) |
Date: |
Sat, 7 Oct 2017 16:58:43 -0400 (EDT) |
branch: emacs-26
commit 3db0dc21689ae7dbdc697bb5fe45e988cee1f831
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>
Fix crash when closing fullscreen frame on macOS (bug#28661)
* src/nsterm.m (EmacsView::windowWillResize): Return new frame size
unmodified if the frame isn't live.
---
src/nsterm.m | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index f0b6a70..abfdffc 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6893,6 +6893,9 @@ not_in_argv (NSString *arg)
NSTRACE_RECT ("[sender frame]", [sender frame]);
NSTRACE_FSTYPE ("fs_state", fs_state);
+ if (!FRAME_LIVE_P (emacsframe))
+ return frameSize;
+
if (fs_state == FULLSCREEN_MAXIMIZED
&& (maximized_width != (int)frameSize.width
|| maximized_height != (int)frameSize.height))