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

Function animateWindows

scratch.js:216–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214}
215
216export function animateWindows() {
217 let ws = getScratchWindows().filter(w => !w.minimized);
218 ws = global.display.sort_windows_by_stacking(ws);
219 for (let w of ws) {
220 // let parent = w.clone.get_parent();
221 // parent && parent.remove_child(w.clone);
222 Utils.actor_remove_parent(w.clone);
223
224 Main.uiGroup.insert_child_above(w.clone, global.window_group);
225 let f = w.get_frame_rect();
226 w.clone.set_position(f.x, f.y);
227 Tiling.animateWindow(w);
228 }
229}
230
231export function showWindows() {
232 let ws = getScratchWindows().filter(w => !w.minimized);

Callers

nothing calls this directly

Calls 1

getScratchWindowsFunction · 0.85

Tested by

no test coverage detected