From c358e12777789cacb127e8cb0aef61a4a0142172 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Wed, 27 Jun 2012 13:14:39 +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. This is a backport of commit c196f89b7e298252944680bf0ba230a33feef718 from qtbase. Change-Id: Idbbcd706befef0aadb3f79ab412b41f487ae978b Reviewed-by: Sean Harmer --- src/plugins/platforms/blackberry/qbbscreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/platforms/blackberry/qbbscreen.cpp b/src/plugins/platforms/blackberry/qbbscreen.cpp index 2902f7e..d36723a 100644 --- a/src/plugins/platforms/blackberry/qbbscreen.cpp +++ b/src/plugins/platforms/blackberry/qbbscreen.cpp @@ -228,6 +228,10 @@ void QBBScreen::setRotation(int rotation) // Rotating only the primary screen is what we had in the navigator event handler before refactoring if (mPrimaryDisplay) QWindowSystemInterface::handleScreenGeometryChange(mScreenIndex); + + // Flush everything, so that the windows rotations are applied properly. + // Needed for non-maximized windows + screen_flush_context(mContext, 0); } } -- cgit v0.12