From a97d08a2d2b0ddca53f397d4989cb624a25d92cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 4 Apr 2013 17:07:05 +0200 Subject: [PATCH] window-list: Set metaWindow for single-window items when grouped When grouping is enabled, items that are only have a single window associated are still expected to behave like ungrouped items. This includes activating windows by DND, which uses the metaWindow property on the hovered actor's _delegate, so make sure it is set on AppButtons in single-window mode as well. https://bugzilla.gnome.org/show_bug.cgi?id=693561 --- extensions/window-list/extension.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js index a69d9c15..45d86e5b 100644 --- a/extensions/window-list/extension.js +++ b/extensions/window-list/extension.js @@ -239,11 +239,13 @@ const AppButton = new Lang.Class({ if (this._singleWindowTitle.visible) { if (!this._windowTitle) { - this._windowTitle = new WindowTitle(windows[0]); + this.metaWindow = windows[0]; + this._windowTitle = new WindowTitle(this.metaWindow); this._singleWindowTitle.child = this._windowTitle.actor; } } else { if (this._windowTitle) { + this.metaWindow = null; this._singleWindowTitle.child = null; this._windowTitle = null; }