Fix "Windows: windows can show up on the wrong screen with the wrong scale" (#1437)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled

This commit is contained in:
ManoloFLTK
2026-05-21 08:25:17 +02:00
parent faf210a1d0
commit fa7ab95d35
+1 -4
View File
@@ -2261,10 +2261,7 @@ void Fl_WinAPI_Window_Driver::makeWindow() {
nscreen = Fl_WinAPI_Window_Driver::driver(w)->screen_num_;
else nscreen = Fl::screen_num(w->x(), w->y());
} else {
Fl_Window *hint = Fl::first_window();
if (hint) {
nscreen = Fl_Window_Driver::driver(hint->top_window())->screen_num();
} else if (Fl::screen_driver()->screen_count() > 1 ) {
if (Fl::screen_driver()->screen_count() > 1 ) {
// put the new window on same screen as mouse
int mx, my, X, Y, W, H;
nscreen = Fl::screen_driver()->get_mouse(mx, my);