Fix crash when closing a fullscreen window.

This commit is contained in:
John Ralls 2019-03-10 15:31:52 -07:00
parent e74622b0b8
commit db84dc8e58
2 changed files with 6 additions and 0 deletions

View File

@ -727,6 +727,9 @@
-(void)setFrame: (NSRect)frame
{
if (GDK_WINDOW_DESTROYED (gdk_window))
return;
[super setFrame: frame];
if ([self window])

View File

@ -2730,6 +2730,9 @@ _gdk_quartz_window_update_fullscreen_state (GdkWindow *window)
gboolean is_fullscreen;
gboolean was_fullscreen;
if (GDK_WINDOW_DESTROYED (window) || !WINDOW_IS_TOPLEVEL (window))
return;
is_fullscreen = window_is_fullscreen (window);
was_fullscreen = (gdk_window_get_state (window) & GDK_WINDOW_STATE_FULLSCREEN) != 0;