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

Function disable

tiling.js:207–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205}
206
207export function disable() {
208 Utils.timeout_remove(startupTimeoutId);
209 startupTimeoutId = null;
210 Utils.timeout_remove(timerId);
211 timerId = null;
212 Utils.timeout_remove(fullscreenStartTimeout);
213 fullscreenStartTimeout = null;
214 Utils.timeout_remove(stackSlurpTimeout);
215 stackSlurpTimeout = null;
216 workspaceChangeTimeouts?.forEach(t => Utils.timeout_remove(t));
217 workspaceChangeTimeouts = null;
218 Utils.timeout_remove(monitorChangeTimeout);
219 monitorChangeTimeout = null;
220 Utils.timeout_remove(driftTimeout);
221 driftTimeout = null;
222
223 grabSignals.destroy();
224 grabSignals = null;
225 signals.destroy();
226 signals = null;
227
228 saveState.prepare();
229 displayConfig.downgradeGnomeMonitors();
230 displayConfig = null;
231 spaces.destroy();
232 inGrab = null;
233 gsettings = null;
234 backgroundGroup = null;
235 backgroundSettings = null;
236 interfaceSettings = null;
237 workspaceSettings = null;
238}
239
240/**
241 * Exported inGrab is read-only from other modules.

Callers

nothing calls this directly

Calls 3

prepareMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected