MacOS: avoid crash when closing a fullscreen window

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2016-11-01 21:18:21 +00:00
parent e59fc5c06e
commit 58ce9d778a
+2 -1
View File
@@ -1354,8 +1354,9 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
}
- (void)windowDidResize:(NSNotification *)notif
{
fl_lock_function();
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];