Position maximized windows properly

We can just take the coordinates from the frame since it's not possible to
actually move a maximized window.
This commit is contained in:
Tor Hedin Brønner
2017-10-22 14:08:18 +02:00
parent 2021b584e4
commit 68389af07d
+4
View File
@@ -332,6 +332,10 @@ ensure_viewport = (space, meta_window, force) => {
time: 0.25,
});
} else if (meta_window.maximized_vertically
&& meta_window.maximized_horizontally) {
x = frame.x;
y = frame.y;
} else if (required_width <= primary.width) {
let leftovers = primary.width - required_width;
let gaps = space.length + 1;