[gnome-shell] workspaceThumbnails: Fix creating new workspace via DND



commit 89a2dc71fc1ed56702b0eac83b6d597cb946596f
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 21 10:38:29 2014 +0100

    workspaceThumbnails: Fix creating new workspace via DND
    
    Commit 61a58ff3c981d4 replaced the (removed in commit 254afc50223a7)
    MetaWindowActor.get_workspace() method by MetaWindow.get_workspace(),
    but did not take into account that the return values differ - the
    former returns the workspace index, the latter the workspace object.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724686

 js/ui/workspaceThumbnail.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js
index 7b7bc90..913ed23 100644
--- a/js/ui/workspaceThumbnail.js
+++ b/js/ui/workspaceThumbnail.js
@@ -822,7 +822,7 @@ const ThumbnailsBox = new Lang.Class({
             // ... move them down one.
             windows.forEach(function(winActor) {
                 let window = winActor.meta_window;
-                window.change_workspace_by_index(window.get_workspace() + 1, true);
+                window.change_workspace_by_index(window.get_workspace().index() + 1, true);
             });
 
             if (isWindow)


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