From fc3e6a1c5328b090e48d5dd5a80b1d77fdd461a7 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 10 Jan 2026 12:05:01 +0100 Subject: Windows: improve moving window across screens with distinct scale factors - cont'd --- src/Fl_win32.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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: { -- cgit v1.2.3