diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-21 15:37:34 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-21 15:37:34 +0200 |
| commit | 5ee1c0c9df6fd88e420857a0fbf0165e530413d7 (patch) | |
| tree | 87e6302783751e3f3a24b9966b5d919547e72aba | |
| parent | 4aa321fe688d192004ed01e1f1a3465e08d750a6 (diff) | |
macOS: fix changes to Fl_X::first with front window
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 0767ee98b..89262361c 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1057,7 +1057,6 @@ static void cocoaMouseHandler(NSEvent *theEvent) return; } Fl_Window *first = Fl::first_window(); - if (first != window && !(first->modal() || first->non_modal())) Fl::first_window(window); NSPoint pos = [theEvent locationInWindow]; float s = Fl::screen_driver()->scale(0); pos.x /= s; pos.y /= s; |
