From: Alan Third Date: Sat, 7 Oct 2017 15:00:49 +0000 (+0100) Subject: Fix crash when closing fullscreen frame on macOS (bug#28661) X-Git-Tag: emacs-26.0.90~45^2~2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3db0dc2168;p=emacs.git 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. --- diff --git a/src/nsterm.m b/src/nsterm.m index f0b6a70dae3..abfdffc9f5e 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))