on xenial help sign in
don't show hud button when on dash+hidden sidestage app scenario
4263dd3Albert Astals
qml/Shell.qml+1−3
@@ -83,8 +83,6 @@ FocusScope {
83 applicationManager.setSideStageAppRect(sideStageAppRect);
83 applicationManager.setSideStageAppRect(sideStageAppRect);
84 }
84 }
85
85
86− readonly property bool applicationFocused: !!applicationManager.mainStageFocusedApplication
87− || !!applicationManager.sideStageFocusedApplication
88 // Used for autopilot testing.
86 // Used for autopilot testing.
89 readonly property string currentFocusedAppId: ApplicationManager.focusedApplicationId
87 readonly property string currentFocusedAppId: ApplicationManager.focusedApplicationId
90
88
@@ -711,7 +709,7 @@ FocusScope {
711 theHud: hud
709 theHud: hud
712 anchors.fill: parent
710 anchors.fill: parent
713 enabled: hud.available
711 enabled: hud.available
714− applicationIsOnForeground: applicationFocused
712+ applicationIsOnForeground: (stages.shown && mainStage.applications.count > 0) || (stages.shown && sideStage.shown)
715 }
713 }
716
714
717 InputFilterArea {
715 InputFilterArea {