Fix crash when closing a fullscreen window.
This commit is contained in:
parent
e74622b0b8
commit
db84dc8e58
@ -727,6 +727,9 @@
|
|||||||
|
|
||||||
-(void)setFrame: (NSRect)frame
|
-(void)setFrame: (NSRect)frame
|
||||||
{
|
{
|
||||||
|
if (GDK_WINDOW_DESTROYED (gdk_window))
|
||||||
|
return;
|
||||||
|
|
||||||
[super setFrame: frame];
|
[super setFrame: frame];
|
||||||
|
|
||||||
if ([self window])
|
if ([self window])
|
||||||
|
@ -2730,6 +2730,9 @@ _gdk_quartz_window_update_fullscreen_state (GdkWindow *window)
|
|||||||
gboolean is_fullscreen;
|
gboolean is_fullscreen;
|
||||||
gboolean was_fullscreen;
|
gboolean was_fullscreen;
|
||||||
|
|
||||||
|
if (GDK_WINDOW_DESTROYED (window) || !WINDOW_IS_TOPLEVEL (window))
|
||||||
|
return;
|
||||||
|
|
||||||
is_fullscreen = window_is_fullscreen (window);
|
is_fullscreen = window_is_fullscreen (window);
|
||||||
was_fullscreen = (gdk_window_get_state (window) & GDK_WINDOW_STATE_FULLSCREEN) != 0;
|
was_fullscreen = (gdk_window_get_state (window) & GDK_WINDOW_STATE_FULLSCREEN) != 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user