fix startup of non rotatesWindowContents apps
commitb3f04a91a97544df73b1f3b4b3511f1fc33d1d0e
authorAlbert Astals Cid <albert.astals@canonical.com>
dateMon 23 May 2016, 14:52 (10 years ago)
parentf7134c6
qml/Stages/DesktopStage.qml+5−1
@@ -362,7 +362,11 @@ AbstractStage {
362362 }
363363 }
364364 Component.onCompleted: {
365− decoratedWindow.surfaceOrientationAngle = shellOrientationAngle;
365+ if (application && application.rotatesWindowContents) {
366+ decoratedWindow.surfaceOrientationAngle = shellOrientationAngle;
367+ } else {
368+ decoratedWindow.surfaceOrientationAngle = 0;
369+ }
366370
367371 // NB: We're differentiating if this delegate was created in response to a new entry in the model
368372 // or if the Repeater is just populating itself with delegates to match the model it received.