on xenial help sign in
Revert focus stealing prevention for new apps. Fixes: https://bugs.launchpad.net/bugs/1190155.

Approved by PS Jenkins bot, Gerry Boland.

commit76e391629411d80ec384df0770df5e8abc60ed2f authorMichał Sawicz <michal.sawicz@canonical.com> dateWed 12 Jun 2013, 09:42 (13 years ago) parent0ffb04fee9de0b
1 file changed+8−16
Shell.qml+8−16
Shell.qml+8−16
@@ -218,26 +218,18 @@ FocusScope {
218218 Connections {
219219 target: shell.applicationManager
220220 onMainStageFocusedApplicationChanged: {
221− handleFocusedApplicationChange(mainStage, shell.applicationManager.mainStageFocusedApplication);
221+ if (shell.applicationManager.mainStageFocusedApplication) {
222+ mainStage.show();
223+ stages.show();
224+ }
222225 }
223226 onSideStageFocusedApplicationChanged: {
224− handleFocusedApplicationChange(sideStage, shell.applicationManager.sideStageFocusedApplication);
225− }
226− ignoreUnknownSignals: true
227−
228− function handleFocusedApplicationChange(stage, application) {
229− if (stages.shown) {
230− if (application) {
231− stage.show();
232− stages.show();
233− }
234− } else {
235− // focus changed while shell in foreground, ensure app remains unfocused
236− if (application) {
237− shell.applicationManager.unfocusCurrentApplication();
238− }
227+ if (shell.applicationManager.sideStageFocusedApplication) {
228+ sideStage.show();
229+ stages.show();
239230 }
240231 }
232+ ignoreUnknownSignals: true
241233 }
242234
243235