@@ -83,8 +83,6 @@ FocusScope {
83 applicationManager.setSideStageAppRect(sideStageAppRect);
83 applicationManager.setSideStageAppRect(sideStageAppRect);
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
@@ -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)
717 InputFilterArea {
715 InputFilterArea {