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

Function getScratchWindows

scratch.js:163–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162/** Return scratch windows in MRU order */
163export function getScratchWindows() {
164 return global.display.get_tab_list(Meta.TabList.NORMAL, null)
165 .filter(isScratchWindow);
166}
167
168export function isScratchActive() {
169 return getScratchWindows().some(metaWindow => !metaWindow.minimized);

Callers 5

isScratchActiveFunction · 0.85
showFunction · 0.85
hideFunction · 0.85
animateWindowsFunction · 0.85
showWindowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected