From 79245c09d815fd856cc926dabece4baa7a5290f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Wed, 31 Jan 2018 15:56:58 +0100 Subject: [PATCH] Remove ad-hoc stack level fix This is no longer necessary as we now raise windows when we know if they will be visible after animation, which is much better than after animation is finished. --- tiling.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tiling.js b/tiling.js index e3035d2..e3f1554 100644 --- a/tiling.js +++ b/tiling.js @@ -490,9 +490,6 @@ function ensure_viewport(space, meta_window, force) { // Certain gnome-shell/mutter animations expect default // pivot point (eg. fullscreen) meta_window.get_compositor_private().set_pivot_point(0, 0); - - // Make sure that the top of the stack level is properly done - fixStackLevels(space); }, onStart:() => { meta_window.raise(); } }); @@ -500,24 +497,6 @@ function ensure_viewport(space, meta_window, force) { return x; } -function fixStackLevels(space) { - // Make sure that the top of the stack level is properly done - let from = space.indexOf(space.topOfLeftStack()); - let to = space.indexOf(space.topOfRightStack()); - from = Math.max(0, from); - - if (to === -1) { - // No right stack, so we need to loop to the end - to = spaces.length; - } else { - space[to].raise(); - } - // Raise all windows up to the last non-stacked window - for (let i = from; i < to; i++) { - space[i].raise(); - } -} - function focus_handler(meta_window, user_data) { debug("focus:", meta_window.title, utils.framestr(meta_window.get_frame_rect()));