Don't set _isStacked on non inserted windows

This also means that ensureViewport(null, space) won't fail.
This commit is contained in:
Tor Hedin Brønner
2018-04-30 00:03:08 +02:00
parent 0fc371d1a7
commit aac8a07553
+2 -3
View File
@@ -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,