summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-10 12:05:01 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-10 12:05:01 +0100
commitfc3e6a1c5328b090e48d5dd5a80b1d77fdd461a7 (patch)
treef4b93a747292033077b9dee0400afd23cc79d660
parent8914914735b7532b9c18f7c7360c3c1fb79d1f5a (diff)
Windows: improve moving window across screens with distinct scale factors - cont'd
-rw-r--r--src/Fl_win32.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index cbc5fbd83..7d2ebeb2b 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1280,6 +1280,10 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
SetWindowPos(hWnd, NULL, lParam_rect->left, lParam_rect->top,
lParam_rect->right - lParam_rect->left,
lParam_rect->bottom - lParam_rect->top, flags);
+ if (ns >= 0) {
+ scale = Fl::screen_driver()->scale(ns);
+ EnumChildWindows(hWnd, child_window_cb, (LPARAM)&scale);
+ }
}
}
return 0;
@@ -1745,6 +1749,7 @@ content key keyboard layout
case WM_CAPTURECHANGED:
moving_window = false;
+ resize_bug_fix = 0;
return 0;
case WM_MOVE: {