From aac8a07553bf2ed6cd6ed0b6ce1361e0b9a15367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Mon, 23 Apr 2018 18:34:00 +0200 Subject: [PATCH] Don't set _isStacked on non inserted windows This also means that ensureViewport(null, space) won't fail. --- tiling.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tiling.js b/tiling.js index 4eb6f6b..ad8cc82 100644 --- a/tiling.js +++ b/tiling.js @@ -687,14 +687,13 @@ function ensureViewport(meta_window, space, force) { debug('already moving', meta_window.title); return; } - debug('Moving', meta_window.title); - - meta_window._isStacked = false; let index = space.indexOf(meta_window) if (index === -1) return; + debug('Moving', meta_window.title); + meta_window._isStacked = false; space.selectedWindow = meta_window; let frame = meta_window.get_frame_rect(); meta_window.move_resize_frame(true, frame.x, frame.y,