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.
This commit is contained in:
parent
bc80da5bd3
commit
3db0dc2168
1 changed files with 3 additions and 0 deletions
|
@ -6893,6 +6893,9 @@ - (NSSize)windowWillResize: (NSWindow *)sender toSize: (NSSize)frameSize
|
|||
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue