diff options
| author | Manolo Gouy <Manolo> | 2016-11-01 16:38:37 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-11-01 16:38:37 +0000 |
| commit | 2714c7600eba1c6ec6c35d2b87f69ef2c0db8c73 (patch) | |
| tree | c46373efff0d8c8577ce32753b630c2a1628ba39 | |
| parent | 16d62ebbd45ae6c4d4b0f60a36975611c4eba1ba (diff) | |
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
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
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]; |
