From 1ff4793cf45d231b85bcb4a39cfdfe1faada9a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 24 Jun 2018 20:58:59 +0200 Subject: [PATCH] disable: Lower all windows Lower windows using the flat order of the space. --- tiling.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tiling.js b/tiling.js index 1c20103..241a653 100644 --- a/tiling.js +++ b/tiling.js @@ -725,15 +725,16 @@ function disable () { spaces.destroy(); oldSpaces.forEach(space => { - let selected = space.selectedIndex(); + let windows = space.getWindows(); + let selected = windows.indexOf(space.selectedWindow); if (selected === -1) return; // Stack windows correctly for controlled restarts - for (let i=selected; i=0; i--) { - space[i][0].lower(); + windows[i].lower(); } });