From 928d22a5b516a764cd84c4d6b3d5166e849a8c8e Mon Sep 17 00:00:00 2001 From: Rares Visalom Date: Mon, 21 Aug 2017 14:49:19 +0300 Subject: [PATCH] system: prevent leaving the overview on system actions Due to the fact that leaving the overview is an old behavior it is not deprecated and unnecessary for most actions, except the settings one. The settings system action opens an app, therefore leaving the overview makes sense. https://bugzilla.gnome.org/show_bug.cgi?id=691900 --- js/ui/status/system.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/ui/status/system.js b/js/ui/status/system.js index 604183f69..27c9e2387 100644 --- a/js/ui/status/system.js +++ b/js/ui/status/system.js @@ -445,13 +445,11 @@ var Indicator = new Lang.Class({ _onLockScreenClicked: function() { this.menu.itemActivated(BoxPointer.PopupAnimation.NONE); - Main.overview.hide(); Main.screenShield.lock(true); }, _onLoginScreenActivate: function() { this.menu.itemActivated(BoxPointer.PopupAnimation.NONE); - Main.overview.hide(); if (Main.screenShield) Main.screenShield.lock(false); @@ -462,13 +460,11 @@ var Indicator = new Lang.Class({ }, _onQuitSessionActivate: function() { - Main.overview.hide(); this._session.LogoutRemote(0); }, _onPowerOffClicked: function() { this.menu.itemActivated(); - Main.overview.hide(); this._session.ShutdownRemote(0); },