mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
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:
+2
-1
@@ -1354,8 +1354,9 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
|
|||||||
}
|
}
|
||||||
- (void)windowDidResize:(NSNotification *)notif
|
- (void)windowDidResize:(NSNotification *)notif
|
||||||
{
|
{
|
||||||
fl_lock_function();
|
|
||||||
FLWindow *nsw = (FLWindow*)[notif object];
|
FLWindow *nsw = (FLWindow*)[notif object];
|
||||||
|
if (![nsw isVisible]) return;
|
||||||
|
fl_lock_function();
|
||||||
Fl_Window *window = [nsw getFl_Window];
|
Fl_Window *window = [nsw getFl_Window];
|
||||||
NSRect r; NSPoint pt2;
|
NSRect r; NSPoint pt2;
|
||||||
r = [[nsw contentView] frame];
|
r = [[nsw contentView] frame];
|
||||||
|
|||||||
Reference in New Issue
Block a user