[gnome-shell/wip/workspace-sort] workspace: Make sure to sort the last row in the overview



commit b53be942d4c7edf45deeba8c9cce9bf2f49ae69c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Aug 31 16:57:41 2013 -0400

    workspace: Make sure to sort the last row in the overview
    
    We added special code to sort each row in the overview so that
    windows were less likely to cross lines, but the awkward control
    flow meant that everything but the last row got sorted.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707197

 js/ui/workspace.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index a2716ef..03446ba 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -876,7 +876,6 @@ const UnalignedLayoutStrategy = new Lang.Class({
                     row.windows.push(window);
                     row.fullWidth += width;
                 } else {
-                    this._sortRow(row);
                     break;
                 }
             }
@@ -886,6 +885,8 @@ const UnalignedLayoutStrategy = new Lang.Class({
         let maxRow;
         for (let i = 0; i < numRows; i++) {
             let row = rows[i];
+            this._sortRow(row);
+
             if (!maxRow || row.fullWidth > maxRow.fullWidth)
                 maxRow = row;
             gridHeight += row.fullHeight;


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