From b3861ca693891f90f553c365dbe2c59b626af872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 11 Aug 2021 22:54:11 +0200 Subject: [PATCH] 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: --- js/ui/appMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/appMenu.js b/js/ui/appMenu.js index 85c193bfe..3b757492e 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(); }); });