macOS: fix changes to Fl_X::first with front window

This commit is contained in:
ManoloFLTK 2024-06-21 15:37:34 +02:00
parent 4aa321fe68
commit 5ee1c0c9df

View File

@ -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;