From 68389af07d700cdfea01e2b367ea7334fa5b725a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 22 Oct 2017 14:08:18 +0200 Subject: [PATCH] Position maximized windows properly We can just take the coordinates from the frame since it's not possible to actually move a maximized window. --- tiling.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tiling.js b/tiling.js index 1eac5bf..a59a100 100644 --- a/tiling.js +++ b/tiling.js @@ -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;