emit width/height changes for the new rect
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 24 Nov 2011 10:53:58 +0000 (11:53 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 Nov 2011 12:37:32 +0000 (13:37 +0100)
Change-Id: I789a45bc60aaa949d18e9fb72a186a259548ec1d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qguiapplication.cpp

index 7e60689..a329f99 100644 (file)
@@ -792,9 +792,9 @@ void QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePr
         window->d_func()->resizeEventPending = false;
 
         if (cr.width() != newRect.width())
-            window->widthChanged(cr.width());
+            window->widthChanged(newRect.width());
         if (cr.height() != newRect.height())
-            window->heightChanged(cr.height());
+            window->heightChanged(newRect.height());
     }
 
     if (isMove) {
@@ -803,9 +803,9 @@ void QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePr
         QGuiApplication::sendSpontaneousEvent(window, &e);
 
         if (cr.x() != newRect.x())
-            window->xChanged(cr.x());
+            window->xChanged(newRect.x());
         if (cr.y() != newRect.y())
-            window->yChanged(cr.y());
+            window->yChanged(newRect.y());
     }
 }