[gnome-shell/wip/rewindow: 9/12] workspace: Refactor code a bit



commit 292f1aa0e4075d127fc3ba32635fad30f83d6cc5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Aug 8 18:42:13 2012 -0300

    workspace: Refactor code a bit
    
    https://bugzilla.gnome.org/show_bug.cgi?id=582650

 js/ui/workspace.js |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 862828f..d05b10e 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -987,16 +987,10 @@ const Workspace = new Lang.Class({
         if (this._reservedSlot == clone)
             return;
 
-        if (clone && this.containsMetaWindow(clone.metaWindow)) {
-            this._reservedSlot = null;
-            this.positionWindows(WindowPositionFlags.ANIMATE);
-            return;
-        }
-        if (clone)
-            this._reservedSlot = clone;
-        else
-            this._reservedSlot = null;
+        if (clone && this.containsMetaWindow(clone.metaWindow))
+            clone = null;
 
+        this._reservedSlot = clone;
         this._currentLayout = null;
         this.positionWindows(WindowPositionFlags.ANIMATE);
     },



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