From cb9f73fc14439a3e40d7cc7fde0c49a46eb85f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Fri, 22 Jun 2018 18:52:08 +0200 Subject: [PATCH] Only fix stack around an actual window ref #56 --- tiling.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tiling.js b/tiling.js index f4d5b2f..7e76bb0 100644 --- a/tiling.js +++ b/tiling.js @@ -1272,6 +1272,8 @@ let showWrapper = utils.dynamic_function_ref('showHandler', Me); stack, not the mru, when auto choosing focus after closing a window. */ function fixStack(space, around) { + if (around < 0 || around >= space.length) + return; utils.debug("stack", "fix stack"); let mru = global.display.get_tab_list(Meta.TabList.NORMAL, space.workspace);