Fix Shell::test_launchedAppKeepsActiveFocusOnUsageModeChange failure
commit69c523c897af966032ea94d62badb486e7449fec
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateFri 4 Sep 2015, 11:02 (11 years ago)
parente5904da
qml/Stages/DesktopStage.qml+7
@@ -210,6 +210,13 @@ Rectangle {
210210 }
211211 }
212212
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+
213220 Binding {
214221 target: ApplicationManager.get(index)
215222 property: "requestedState"