From 2714c7600eba1c6ec6c35d2b87f69ef2c0db8c73 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 1 Nov 2016 16:38:37 +0000 Subject: [PATCH] MacOS: fix crash when closing a fullscreen window - continued git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 89c13f63c..d12103126 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1317,6 +1317,8 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; - (void)windowDidResize:(NSNotification *)notif { FLWindow *nsw = (FLWindow*)[notif object]; + if (![nsw isVisible]) return; + fl_lock_function(); Fl_Window *window = [nsw getFl_Window]; NSRect r; NSPoint pt2; r = [[nsw contentView] frame];