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

Method prepare

tiling.js:3888–3903  ·  view source on GitHub ↗

* Prepares state for restoring on next enable.

()

Source from the content-addressed store, hash-verified

3886 * Prepares state for restoring on next enable.
3887 */
3888 prepare() {
3889 this.update();
3890 this.prevSpaces.forEach(space => {
3891 let windows = space.getWindows();
3892 let selected = windows.indexOf(space.selectedWindow);
3893 if (selected === -1)
3894 return;
3895 // Stack windows correctly for controlled restarts
3896 for (let i = selected; i < windows.length; i++) {
3897 windows[i].lower();
3898 }
3899 for (let i = selected; i >= 0; i--) {
3900 windows[i].lower();
3901 }
3902 });
3903 }
3904}
3905
3906/**

Callers 1

disableFunction · 0.80

Calls 3

updateMethod · 0.95
getWindowsMethod · 0.80
indexOfMethod · 0.80

Tested by

no test coverage detected