path: root/src/gui/kernel/qwindowsysteminterface.h
diff options
authorTor Arne Vestbø <>2014-07-28 15:37:05 +0200
committerTor Arne Vestbø <>2014-09-10 14:31:35 +0200
commit2368e62f32e39abdad54260fa4a7b1b6018e5b04 (patch)
treeee8a37e8384418b3d8d99e2d703d4d8e59a4bf7d /src/gui/kernel/qwindowsysteminterface.h
parent2d2dc976d83b7a862af20f631657175f6a83790c (diff)
qpa: Make screen geometry updates (full and available geometry) atomic
Updating the geometry and available geometry in two steps means that QScreen will be in an inconsistent state when emitting the geometry change signal, as the available geometry has not been updated yet. Piggy-backing changes to the availableGeometry based on the virtual geometry changing does not make sense, so we now tie geometry and availableGeometry (and their size variants) to their own separate geometryChanged and availableGeometryChanged signals. Change-Id: Iee0ced642cbb91c470cb54bc507d2c0512482c13 Reviewed-by: Richard Moe Gustavsen <> Reviewed-by: Friedemann Kleint <> Reviewed-by: Eskil Abrahamsen Blomfeldt <> Reviewed-by: Paul Olav Tvete <>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.h')
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface.h b/src/gui/kernel/qwindowsysteminterface.h
index 580f1f86fa..c681185c35 100644
--- a/src/gui/kernel/qwindowsysteminterface.h
+++ b/src/gui/kernel/qwindowsysteminterface.h
@@ -164,8 +164,7 @@ public:
// Changes to the screen
static void handleScreenOrientationChange(QScreen *screen, Qt::ScreenOrientation newOrientation);
- static void handleScreenGeometryChange(QScreen *screen, const QRect &newGeometry);
- static void handleScreenAvailableGeometryChange(QScreen *screen, const QRect &newAvailableGeometry);
+ static void handleScreenGeometryChange(QScreen *screen, const QRect &newGeometry, const QRect &newAvailableGeometry);
static void handleScreenLogicalDotsPerInchChange(QScreen *screen, qreal newDpiX, qreal newDpiY);
static void handleScreenRefreshRateChange(QScreen *screen, qreal newRefreshRate);