diff options
| author | Morteza Jamshidi <morteza.jamshidi@qt.io> | 2025-06-16 16:12:16 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-06-18 12:38:07 +0000 |
| commit | 78a0018c86b98a63ccb13f61d4a33e94c3f053cc (patch) | |
| tree | 0c5573f103db8965a1a031c8a8e722ad8fd9ba71 /src/plugins/platforms/windows/qwindowsscreen.h | |
| parent | 0bd68fac97f4967f39715bf221f246c85371f3bf (diff) | |
Windows: Check for screen changes for each window after adding screen
When a new screen is attached Window might move windows to the new
screen automatically, in which case they will get a WM_DPICHANGED
event. But at that point we have not received WM_DISPLAYCHANGE yet,
so we fail to reflect the new screen's DPI.
To account for this we explicitly check for screen change after adding
a new screen.
Fixes: QTBUG-125319
Change-Id: Ic854fe9f9ae52f53bb34cb8434111a6a1ba032d2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsscreen.h')
| -rw-r--r-- | src/plugins/platforms/windows/qwindowsscreen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsscreen.h b/src/plugins/platforms/windows/qwindowsscreen.h index ea6a29efe38..8d555998388 100644 --- a/src/plugins/platforms/windows/qwindowsscreen.h +++ b/src/plugins/platforms/windows/qwindowsscreen.h @@ -119,6 +119,7 @@ public: static bool isSingleScreen(); private: + void addScreen(const QWindowsScreenData &screenData); void removeScreen(int index); HWND m_displayChangeObserver = nullptr; |
