From 21e2280825e41073178d80dc18a8c290b05f8bd5 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 16 Nov 2011 00:12:58 +0000 Subject: [PATCH] AppMenuButton: only show the button if the target app is on the current ws When the last window on a workspace is closed the focus goes to some other window in another workspace which would cause us to show the AppMenuButton for an application that isn't visible on the current empty workspace. https://bugzilla.gnome.org/show_bug.cgi?id=643867 --- js/ui/panel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/panel.js b/js/ui/panel.js index 69e75a10b..5072ef811 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -497,6 +497,9 @@ const AppMenuButton = new Lang.Class({ return; } + if (!targetApp.is_on_workspace(workspace)) + return; + if (!this._targetIsCurrent) { this.actor.reactive = true; this._targetIsCurrent = true;