summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qgraphicssystem_runtime.cpp
diff options
context:
space:
mode:
authorSami Kyostila <sami.kyostila@nokia.com>2011-02-24 12:18:40 +0100
committerSamuel Rødal <samuel.rodal@nokia.com>2011-02-24 12:19:55 +0100
commit92d7aebf897f93e7de6f1db16d0b8b12e4eeb37a (patch)
treec8ef6d5cf476eea9963566209c39fa91e84998ac /src/gui/painting/qgraphicssystem_runtime.cpp
parent9d019830169289a3aa00e8baca9c320963904993 (diff)
QRuntimeWindowSystem: Track window size properly
The runtime window system has a 'proxy' window surface which wraps the currently active window surface. When the window geometry changes, the new geometry is properly communicated to the wrapped window surface. However, the new geometry is not updated into the runtime window surface proxy itself, which means that when queried, the geometry for the window surface will always be invalid. This patch fixes the issue. Fixes: QT-4588 Merge-request: 1098 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/painting/qgraphicssystem_runtime.cpp')
-rw-r--r--src/gui/painting/qgraphicssystem_runtime.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qgraphicssystem_runtime.cpp b/src/gui/painting/qgraphicssystem_runtime.cpp
index 0294c4be71..5841d40a30 100644
--- a/src/gui/painting/qgraphicssystem_runtime.cpp
+++ b/src/gui/painting/qgraphicssystem_runtime.cpp
@@ -285,6 +285,7 @@ void QRuntimeWindowSurface::flush(QWidget *widget, const QRegion &region,
void QRuntimeWindowSurface::setGeometry(const QRect &rect)
{
+ QWindowSurface::setGeometry(rect);
m_windowSurface->setGeometry(rect);
}