diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-26 10:46:50 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-26 10:46:50 +0200 |
| commit | 53d9614adbb728fc4db983c9bb817c6eea870994 (patch) | |
| tree | c031a468e164e07ee4ebe6aff82c01f16bd73236 /src | |
| parent | 89f9671b406d1d2ac0377ef90d44ebfa7a92150e (diff) | |
Fix crash under macOS 13 Ventura public beta 6 when closing menu window.
Bizarrely, an NSMouseEntered event arrives returning nil to [event window]!
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index b7b7d22b7..47be438fc 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -975,7 +975,7 @@ static void cocoaMouseHandler(NSEvent *theEvent) fl_lock_function(); Fl_Window *window = (Fl_Window*)[(FLWindow*)[theEvent window] getFl_Window]; - if ( !window->shown() ) { + if (!window || !window->shown() ) { fl_unlock_function(); return; } |
