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.
commit5cedaf5125b3b1a9785afb08d7a1c9cbbd0ee5ad
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateThu 20 Feb 2014, 09:57 (13 years ago)
parent9b32a3e
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
@@ -116,6 +116,11 @@ FocusScope {
116116 }
117117 }
118118
119+ Connections {
120+ target: applicationManager
121+ onFocusRequested: activateApplication(appId)
122+ }
123+
119124 GSettings {
120125 id: backgroundSettings
121126 schema.id: "org.gnome.desktop.background"