[gnome-shell] workspace: Use the position hints when available also for the window overlay



commit 963c6ae567c6f82d89815322c3850a77411cdf71
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Wed Apr 18 14:03:33 2012 +0200

    workspace: Use the position hints when available also for the window overlay
    
    Otherwise when dropping a window in the current workspace the overlay will
    appear from the top left corner.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674323

 js/ui/workspace.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index ae031c1..a1631a0 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1251,7 +1251,7 @@ const Workspace = new Lang.Class({
         if (!this._isMyWindow(win) || !this._isOverviewWindow(win))
             return;
 
-        let clone = this._addWindowClone(win);
+        let [clone, overlay] = this._addWindowClone(win);
 
         if (win._overviewHint) {
             let x = win._overviewHint.x - this.actor.x;
@@ -1261,6 +1261,7 @@ const Workspace = new Lang.Class({
 
             clone.actor.set_position (x, y);
             clone.actor.set_scale (scale, scale);
+            this._updateWindowOverlayPositions(clone, overlay, x, y, scale, false);
         } else {
             // Position new windows at the top corner of the workspace rather
             // than where they were placed for real to avoid the window
@@ -1454,7 +1455,7 @@ const Workspace = new Lang.Class({
         this._windows.push(clone);
         this._windowOverlays.push(overlay);
 
-        return clone;
+        return [clone, overlay];
     },
 
     _onShowOverlayClose: function (windowOverlay) {



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