Commit 8986d5b0 authored by Allin Cottrell's avatar Allin Cottrell Committed by John Ralls

Fix Quartz Full Screen Crash.

parent d5e257d1
......@@ -23,6 +23,14 @@
@implementation GdkQuartzNSWindow
- (void)windowWillClose:(NSNotification*)notification
// Clears the delegate when window is going to be closed; since EL
// Capitan it is possible that the methods of delegate would get
// called after the window has been closed.
[self setDelegate:nil];
GdkWindow *window = [[self contentView] gdkWindow];
......@@ -662,7 +662,7 @@
GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (gdk_window->impl);
NSRect rect;
if (!impl->toplevel)
if (!impl || !impl->toplevel)
if (trackingRect)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment