[gnome-shell] appMenu: Hide overview when activating apps
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appMenu: Hide overview when activating apps
- Date: Mon, 16 Aug 2021 21:32:41 +0000 (UTC)
commit b3861ca693891f90f553c365dbe2c59b626af872
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Aug 11 22:54:11 2021 +0200
appMenu: Hide overview when activating apps
This is the expected behavior when activating a window or app. Until
now we could rely on the menu being hidden in the overview, but as
that is about to change, make sure the menu behaves as expected.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>
js/ui/appMenu.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/appMenu.js b/js/ui/appMenu.js
index 85c193bfe8..3b757492e5 100644
--- a/js/ui/appMenu.js
+++ b/js/ui/appMenu.js
@@ -39,6 +39,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
this._newWindowItem = this.addAction(_('New Window'), () => {
this._app.open_new_window(-1);
+ Main.overview.hide();
});
this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
@@ -126,6 +127,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
const label = appInfo.get_action_name(action);
this._actionSection.addAction(label, event => {
this._app.launch_action(action, event.get_time(), -1);
+ Main.overview.hide();
});
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]