]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crash when closing fullscreen frame on macOS (bug#28661)
authorAlan Third <alan@idiocy.org>
Sat, 7 Oct 2017 15:00:49 +0000 (16:00 +0100)
committerAlan Third <alan@idiocy.org>
Sat, 7 Oct 2017 20:57:16 +0000 (21:57 +0100)
* src/nsterm.m (EmacsView::windowWillResize): Return new frame size
unmodified if the frame isn't live.

src/nsterm.m

index f0b6a70dae3b37278273c4a1420a17d6f7b26084..abfdffc9f5e272445202b87b1beeaac0ef7b68e6 100644 (file)
@@ -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))