[gnome-shell] AppMenuButton: only show the button if the target app is on the current ws
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] AppMenuButton: only show the button if the target app is on the current ws
- Date: Fri, 27 Jan 2012 16:37:38 +0000 (UTC)
commit 21e2280825e41073178d80dc18a8c290b05f8bd5
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Nov 16 00:12:58 2011 +0000
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 69e75a1..5072ef8 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]