workspaceThumbnails: Fix creating new workspace via DND

Commit 61a58ff3c9 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
This commit is contained in:
Florian Müllner 2014-02-21 10:38:29 +01:00
parent adb0de43d8
commit 89a2dc71fc

View File

@ -822,7 +822,7 @@ const ThumbnailsBox = new Lang.Class({
// ... move them down one. // ... move them down one.
windows.forEach(function(winActor) { windows.forEach(function(winActor) {
let window = winActor.meta_window; 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) if (isWindow)