on xenial help sign in
Fix Shell::test_launchedAppKeepsActiveFocusOnUsageModeChange failure
69c523cDaniel d'Andrada
qml/Stages/DesktopStage.qml+7
@@ -210,6 +210,13 @@ Rectangle {
210 }
210 }
211 }
211 }
212
212
213+ Component.onCompleted: {
214+ // Focus the top-most or AppMan-focused application on start up.
215+ if (ApplicationManager.focusedApplicationId === model.appId && !focus) {
216+ focus = true;
217+ }
218+ }
219+
213 Binding {
220 Binding {
214 target: ApplicationManager.get(index)
221 target: ApplicationManager.get(index)
215 property: "requestedState"
222 property: "requestedState"