on xenial help sign in
fix side stage z index
commitd45fc13859ca5f684d5ac81c9ec1269fbdfbe7c3 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 13 Sep 2016, 12:50 (10 years ago) parentc1cd98c
2 files changed+4−4
qml/Stage/Stage.qml+3−3 qml/Stage/StageMaths.qml+1−1
qml/Stage/Stage.qml+3−3
@@ -67,7 +67,7 @@ AbstractStage {
6767 case "stagedWithSideStage":
6868 var orientations = mainApp.supportedOrientations;
6969 orientations |= Qt.LandscapeOrientation | Qt.InvertedLandscapeOrientation;
70− if (priv.sideStageItemId && !spreadView.surfaceDragging) {
70+ if (priv.sideStageItemId) {
7171 // If we have a sidestage app, support Portrait orientation
7272 // so that it will switch the sidestage app to mainstage on rotate to portrait
7373 orientations |= Qt.PortraitOrientation|Qt.InvertedPortraitOrientation;
@@ -261,7 +261,7 @@ AbstractStage {
261261 }
262262 if (mainStageIndex == 0 || sideStageIndex == 0) {
263263 if (mainStageIndex == 1 || sideStageIndex == 1) {
264− return 2;
264+ return topLevelSurfaceList.count > 2 ? 2 : -1;
265265 }
266266 return 1;
267267 }
@@ -503,7 +503,7 @@ AbstractStage {
503503 return 1;
504504 }
505505
506− return 2;
506+ return 1;
507507 }
508508
509509 onShownChanged: {
qml/Stage/StageMaths.qml+1−1
@@ -40,7 +40,7 @@ QtObject {
4040
4141 print("App:", model.application.appId, "index:", itemIndex, "nextInStack:", nextInStack)
4242 if (nextInStack > 0) {
43− var stageOfNextInStack = topLevelSurfaceList.applicationAt(nextInStack).stage;
43+ var stageOfNextInStack = appRepeater.itemAt(nextInStack).stage;
4444
4545 if (itemIndex === nextInStack) {
4646 // this is the next app in stack.