mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 15:46:52 +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;
|
return;
|
||||||
}
|
}
|
||||||
Fl_Window *first = Fl::first_window();
|
Fl_Window *first = Fl::first_window();
|
||||||
if (first != window && !(first->modal() || first->non_modal())) Fl::first_window(window);
|
|
||||||
NSPoint pos = [theEvent locationInWindow];
|
NSPoint pos = [theEvent locationInWindow];
|
||||||
float s = Fl::screen_driver()->scale(0);
|
float s = Fl::screen_driver()->scale(0);
|
||||||
pos.x /= s; pos.y /= s;
|
pos.x /= s; pos.y /= s;
|
||||||
|
|||||||
Reference in New Issue
Block a user