on xenial help sign in
When focus is requested by the app manager, only call the correct stage.
5cedaf5Daniel d'Andrada
qml/Components/Stage.qml−5
@@ -84,11 +84,6 @@ Showable {
84 }
84 }
85 }
85 }
86
86
87− Connections {
88− target: applicationManager
89− onFocusRequested: activateApplication(appId)
90− }
91−
92 /* Keep a reference to the focused application so that we can safely
87 /* Keep a reference to the focused application so that we can safely
93 unfocus it when the stage is not fully shown and refocus it when the stage
88 unfocus it when the stage is not fully shown and refocus it when the stage
94 is fully shown again.
89 is fully shown again.
qml/Shell.qml+5
@@ -116,6 +116,11 @@ FocusScope {
116 }
116 }
117 }
117 }
118
118
119+ Connections {
120+ target: applicationManager
121+ onFocusRequested: activateApplication(appId)
122+ }
123+
119 GSettings {
124 GSettings {
120 id: backgroundSettings
125 id: backgroundSettings
121 schema.id: "org.gnome.desktop.background"
126 schema.id: "org.gnome.desktop.background"