Fix "Window scaling shortcut always moves window towards "initial" display on Windows" (#1371)
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-03-09 18:42:00 +01:00
parent 43fded082b
commit 527972e7a4
+1
View File
@@ -1790,6 +1790,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)));