summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-06-27 10:52:41 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-27 14:43:00 +0200
commitc196f89b7e298252944680bf0ba230a33feef718 (patch)
treef39b2b2a21a33204108304c506dfd2135db162d2 /src/plugins
parent3dbd381e039818e4021b33533dbfdab1419510e1 (diff)
QNX: Flush after changing rotation
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>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/qnx/qqnxscreen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreen.cpp b/src/plugins/platforms/qnx/qqnxscreen.cpp
index 0b28557998..a3360b1fe3 100644
--- a/src/plugins/platforms/qnx/qqnxscreen.cpp
+++ b/src/plugins/platforms/qnx/qqnxscreen.cpp
@@ -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 );
}
}