Cocoa: Update QPlatformWindow geometry on move

Change-Id: I976e4da646480d10cc6af444288c421d0645f689
Reviewed-on: http://codereview.qt-project.org/6541
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
This commit is contained in:
Morten Sorvig 2011-10-12 14:42:38 +02:00 committed by Qt by Nokia
parent 75246bbda7
commit 8346c192ad

View File

@ -173,6 +173,7 @@ void QCocoaWindow::windowDidMove()
NSRect windowRect = [m_nsWindow frame];
QRect geo(windowRect.origin.x, qt_mac_flipYCoordinate(windowRect.origin.y + rect.size.height), rect.size.width, rect.size.height);
setGeometry(geo);
QWindowSystemInterface::handleSynchronousGeometryChange(window(), geo);
}