on xenial help sign in
When focus is requested by the app manager, only call the correct stage.

Instead of activating both stages and letting the correct one work it out.

commit127371f88cac08578c2ac6324bf3c45ee48ba3bf authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateThu 20 Feb 2014, 13:19 (13 years ago) parent6f4607d5cedaf5
2 files changed+5−5
qml/Components/Stage.qml−5 qml/Shell.qml+5
qml/Components/Stage.qml−5
@@ -84,11 +84,6 @@ Showable {
8484 }
8585 }
8686
87− Connections {
88− target: applicationManager
89− onFocusRequested: activateApplication(appId)
90− }
91−
9287 /* Keep a reference to the focused application so that we can safely
9388 unfocus it when the stage is not fully shown and refocus it when the stage
9489 is fully shown again.
qml/Shell.qml+5
@@ -120,6 +120,11 @@ FocusScope {
120120 }
121121 }
122122
123+ Connections {
124+ target: applicationManager
125+ onFocusRequested: activateApplication(appId)
126+ }
127+
123128 GSettings {
124129 id: backgroundSettings
125130 schema.id: "org.gnome.desktop.background"