From bde474e0af2027506a0a3de981d03d93433de2b5 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:01:30 +0100 Subject: Windows: error dragging window between differently scaled display - cont'd (#1127) --- src/Fl_win32.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index da7f70e4d..52b3af305 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1275,7 +1275,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar sd->update_scaling_capability(); } else if (ns != old_ns) { // jump window with Windows+Shift+L|R-arrow to other screen with other DPI - if (ns >= 0) window->screen_num(ns); + if (ns >= 0) Fl_Window_Driver::driver(window)->screen_num(ns); UINT flags = SWP_NOSENDCHANGING | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOCOPYBITS; SetWindowPos(hWnd, NULL, lParam_rect->left, lParam_rect->top, lParam_rect->right - lParam_rect->left, -- cgit v1.2.3