mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 00:06:20 +08:00
macOS: fix changes to Fl_X::first with front window
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user