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

Function sortWindows

tiling.js:5562–5569  ·  view source on GitHub ↗
(space, windows)

Source from the content-addressed store, hash-verified

5560 in @space.cloneContainer.
5561 */
5562export function sortWindows(space, windows) {
5563 if (windows.length === 1)
5564 return windows;
5565 let clones = windows.map(w => w.clone);
5566 return space.cloneContainer.get_children()
5567 .filter(c => clones.includes(c))
5568 .map(c => c.meta_window);
5569}
5570
5571export function rotated(list, dir = 1) {
5572 return [].concat(

Callers 3

removeWindowMethod · 0.70
switchMethod · 0.70
focus_handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected