on xenial help sign in
When focus is requested by the app manager, only call the correct stage.
127371fDaniel 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
@@ -120,6 +120,11 @@ FocusScope {
120 }
120 }
121 }
121 }
122
122
123+ Connections {
124+ target: applicationManager
125+ onFocusRequested: activateApplication(appId)
126+ }
127+
123 GSettings {
128 GSettings {
124 id: backgroundSettings
129 id: backgroundSettings
125 schema.id: "org.gnome.desktop.background"
130 schema.id: "org.gnome.desktop.background"