switch workspace: Don't animate when from and to is equal

This commit is contained in:
Tor Hedin Brønner
2018-04-22 14:57:10 +02:00
parent 6672624ce7
commit d404b271fe
+1 -1
View File
@@ -326,7 +326,7 @@ function switchWorkspace(from, to, callback) {
onComplete: callback
});
if (!from)
if (!from || from === to)
return;
let fromSpace = Tiling.spaces.spaceOf(from) || [];