mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 11:36:54 +00:00
switch workspace: Don't animate when from and to is equal
This commit is contained in:
+1
-1
@@ -326,7 +326,7 @@ function switchWorkspace(from, to, callback) {
|
||||
onComplete: callback
|
||||
});
|
||||
|
||||
if (!from)
|
||||
if (!from || from === to)
|
||||
return;
|
||||
|
||||
let fromSpace = Tiling.spaces.spaceOf(from) || [];
|
||||
|
||||
Reference in New Issue
Block a user