status/backgroundApps: Close after activating app

We should leave the overview and close quick settings, like we
do elsewhere when launching something.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6895

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2884>
This commit is contained in:
Florian Müllner 2023-08-11 11:59:43 +02:00 committed by Marge Bot
parent a740bb65d3
commit 05f5532c7d

View File

@ -95,7 +95,11 @@ const BackgroundAppMenuItem = GObject.registerClass({
closeButton.connect('clicked', () => this._quitApp().catch(logError));
this.connect('activate', () => this.app.activate());
this.connect('activate', () => {
Main.overview.hide();
Main.panel.closeQuickSettings();
this.app.activate();
});
this.connect('destroy', () => this._onDestroy());
}