[gnome-shell-extensions] window-list: Set metaWindow for single-window items when grouped



commit a97d08a2d2b0ddca53f397d4989cb624a25d92cc
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Apr 4 17:07:05 2013 +0200

    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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index a69d9c1..45d86e5 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;
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]