From c196f89b7e298252944680bf0ba230a33feef718 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Wed, 27 Jun 2012 10:52:41 +0200 Subject: 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 Reviewed-by: Kevin Krammer --- src/plugins/platforms/qnx/qqnxscreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins') 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 ); } } -- cgit v1.2.3