[gnome-shell] Update to changes for MetaWindow size-changed / position-changed signals



commit 3f7a989d38ea3809ac1ba0f6ec5e78c5665100e4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 31 17:57:20 2014 -0500

    Update to changes for MetaWindow size-changed / position-changed signals
    
    These have changed upstream to be on the MetaWindow, rather than
    the MetaWindowActor. Follow suit.

 js/ui/workspace.js          |    4 ++--
 js/ui/workspaceThumbnail.js |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index d048dd2..1d319e8 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -131,7 +131,7 @@ const WindowClone = new Lang.Class({
         this._dragSlot = [0, 0, 0, 0];
         this._stackAbove = null;
 
-        this._windowClone._updateId = this.realWindow.connect('size-changed',
+        this._windowClone._updateId = this.metaWindow.connect('size-changed',
             Lang.bind(this, this._onRealWindowSizeChanged));
         this._windowClone._destroyId = this.realWindow.connect('destroy', Lang.bind(this, function() {
             // First destroy the clone and then destroy everything
@@ -199,7 +199,7 @@ const WindowClone = new Lang.Class({
 
     _doAddAttachedDialog: function(metaWin, realWin) {
         let clone = new Clutter.Clone({ source: realWin });
-        clone._updateId = realWin.connect('size-changed', Lang.bind(this, function() {
+        clone._updateId = metaWin.connect('size-changed', Lang.bind(this, function() {
             this._computeBoundingBox();
             this.emit('size-changed');
         }));
diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js
index 1b24e59..3e71e9c 100644
--- a/js/ui/workspaceThumbnail.js
+++ b/js/ui/workspaceThumbnail.js
@@ -68,7 +68,7 @@ const WindowClone = new Lang.Class({
         this.realWindow = realWindow;
         this.metaWindow = realWindow.meta_window;
 
-        this.clone._updateId = this.realWindow.connect('position-changed',
+        this.clone._updateId = this.metaWindow.connect('position-changed',
                                                        Lang.bind(this, this._onPositionChanged));
         this.clone._destroyId = this.realWindow.connect('destroy', Lang.bind(this, function() {
             // First destroy the clone and then destroy everything
@@ -151,7 +151,7 @@ const WindowClone = new Lang.Class({
         let clone = new Clutter.Clone({ source: realDialog });
         this._updateDialogPosition(realDialog, clone);
 
-        clone._updateId = realDialog.connect('position-changed',
+        clone._updateId = metaDialog.connect('position-changed',
                                              Lang.bind(this, this._updateDialogPosition, clone));
         clone._destroyId = realDialog.connect('destroy', Lang.bind(this, function() {
             clone.destroy();


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