From 201a56f0a5749794c0ecb9333c474bfc2dad4768 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 9 Mar 2026 18:45:15 +0100 Subject: [PATCH] Commits on Mar 9, 2026 Fix "Window scaling shortcut always moves window towards "initial" display on Windows" (#1371) --- src/Fl_win32.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 4a1d154c5..8cce19c9a 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1764,6 +1764,7 @@ content key keyboard layout int news = sd->screen_num_unscaled(nx + int(trueW * scale / 2), ny + int(trueH * scale / 2)); if (news == -1) news = olds; + else if (news != olds) wd->screen_num(news); scale = sd->scale(news); wd->x(int(round(nx/scale))); wd->y(int(round(ny/scale)));