workspaceThumbnails: Really fix DND creating new workspaces

The same problem spotted in commit 89a2dc71fc is present in
some more places, fix those as well.

https://bugzilla.gnome.org/show_bug.cgi?id=724686
This commit is contained in:
Florian Müllner 2014-02-23 00:10:50 +01:00
parent b494c15e4b
commit f4607626e4

View File

@ -812,9 +812,9 @@ const ThumbnailsBox = new Lang.Class({
return false;
if (isWindow)
return window.get_workspace() >= newWorkspaceIndex && winActor != source;
return window.get_workspace().index() >= newWorkspaceIndex && winActor != source;
else
return window.get_workspace() >= newWorkspaceIndex;
return window.get_workspace().index() >= newWorkspaceIndex;
});
this._spliceIndex = newWorkspaceIndex;