MCPcopy
hub / github.com/paperwm/PaperWM / switchSpace

Method switchSpace

tiling.js:2693–2700  ·  view source on GitHub ↗
(fromSpace, toSpace, animate = false)

Source from the content-addressed store, hash-verified

2691 }
2692
2693 switchSpace(fromSpace, toSpace, animate = false) {
2694 const fromId = fromSpace?.index;
2695 const toId = toSpace?.index;
2696 if (!fromSpace || !toSpace) {
2697 return;
2698 }
2699 spaces.switchWorkspace(null, fromId, toId, animate);
2700 }
2701
2702 switchWorkspace(wm, fromIndex, toIndex, animate = false) {
2703 /**

Callers

nothing calls this directly

Calls 1

switchWorkspaceMethod · 0.80

Tested by

no test coverage detected