qt5base-lts/src
Volker Hilsheimer bbd6cbd71c windows: Re-apply mask when DPI changes, to account for new scale factor
When the DPI of a window changes due to being moved to another screen,
or the current screen reconfiguring, the mask we've set earlier is no
longer correct, as the mask was set based on the original screen's
scale factor and in relation to the former platform geometry of the
window, which now has changed.

Like the geometry of a QWindow, the mask is expressed by the user in
the QtGui coordinate system, so it's the platform's job to transform
this into the platform coordinate system and update it when needed.

Add a manual test that users a QWidget and a Q(Raster)Window side by
side.

There's still an issue with the screen change being triggered to
early, via QWindow::setGeometry, instead of when the window has
actually moved to the new screen, resulting in the paint event
flushing to a window and backingstore that is in the wrong state,
but this requires further research to fix.

Task-number: QTBUG-97642
Pick-to: 6.5 6.2
Done-with: Volker Hilsheimer <volker.hilsheimer@qt.io>
Change-Id: I7ab2d267fbaf6ac32b507d05a418eb025b354a0b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-12 15:41:23 +00:00
..
3rdparty SQLite: Update SQLite to v3.41.2 2023-03-31 13:10:04 +01:00
android Android: fix cutout area rendering on Android 9 and above 2023-04-05 15:59:22 +00:00
concurrent QtConcurrent: fix warning due to assignment to narrower integer type 2023-04-03 00:02:46 +11:00
corelib Long live QPromise::emplaceResult/At()! 2023-04-12 01:57:15 +02:00
dbus Docs: fix links to D-Bus examples 2023-04-11 19:25:42 +02:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui rhi: Remove unused init flag 2023-04-12 11:23:37 +00:00
network Exclude sources from the Unity Build 2023-04-11 13:41:55 +02:00
opengl Use Qt CMake APIs to exclude files from Unity Build 2023-04-03 12:41:14 +02:00
openglwidgets Add QOpenGLWindow/Widget doc note about depth/stencil 2023-03-16 10:26:40 +01:00
platformsupport src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
plugins windows: Re-apply mask when DPI changes, to account for new scale factor 2023-04-12 15:41:23 +00:00
printsupport Use Qt CMake APIs to exclude files from Unity Build 2023-04-03 12:41:14 +02:00
sql QSqlQuery: add boundValueName()/boundValueNames() 2023-04-07 14:25:28 +02:00
testlib Fix some narrowing conversion warnings 2023-04-08 13:24:04 +02:00
tools windeployqt: Add option to skip plugin types during deployment 2023-04-12 14:54:06 +02:00
widgets QMainWindow: fix potential crash when restoring tab bar state 2023-04-11 18:13:14 +02:00
xml Move streambookmarks example into corelibe/serialization 2023-03-31 13:26:42 +02:00
CMakeLists.txt Move CTF tracing plugin to plugins directory 2023-03-21 10:06:32 +02:00