summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/blackberry/qbbscreen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/blackberry/qbbscreen.cpp b/src/plugins/platforms/blackberry/qbbscreen.cpp
index 2902f7ec60..d36723a157 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);
}
}