QNX: Flush after changing rotation
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Wed, 27 Jun 2012 08:52:41 +0000 (10:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 27 Jun 2012 12:43:00 +0000 (14:43 +0200)
This fixes a painting glitch where the window would stay in the old
position with the old rotation until it got repainted.

Change-Id: Id9de256b525760e8b32e55a87549efeccca151e0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
src/plugins/platforms/qnx/qqnxscreen.cpp

index 0b28557..a3360b1 100644 (file)
@@ -240,6 +240,10 @@ void QQnxScreen::setRotation(int rotation)
             QWindowSystemInterface::handleScreenGeometryChange(screen(), m_currentGeometry);
             resizeMaximizedWindows();
         }
+
+        // Flush everything, so that the windows rotations are applied properly.
+        // Needed for non-maximized windows
+        screen_flush_context( m_screenContext, 0 );
     }
 }