summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorSami Kyostila <sami.kyostila@nokia.com>2011-02-24 11:18:40 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-02-24 11:19:55 (GMT)
commit92d7aebf897f93e7de6f1db16d0b8b12e4eeb37a (patch)
treec8ef6d5cf476eea9963566209c39fa91e84998ac /src/gui/painting
parent9d019830169289a3aa00e8baca9c320963904993 (diff)
downloadQt-92d7aebf897f93e7de6f1db16d0b8b12e4eeb37a.zip
Qt-92d7aebf897f93e7de6f1db16d0b8b12e4eeb37a.tar.gz
Qt-92d7aebf897f93e7de6f1db16d0b8b12e4eeb37a.tar.bz2
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')
-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 0294c4b..5841d40 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);
}