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.
This commit is contained in:
Tor Hedin Brønner
2018-01-31 17:31:54 +01:00
parent 019f997c24
commit 79245c09d8
-21
View File
@@ -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()));