From c7e4d99a35aa92383f4ccfb8ee415d7b6b81582e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sat, 23 Jun 2018 17:40:13 +0200 Subject: [PATCH] Don't force the position of the first and last window --- tiling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index 2bc2f9e..52ead42 100644 --- a/tiling.js +++ b/tiling.js @@ -960,7 +960,7 @@ function ensureViewport(meta_window, space, force) { } else if (index == 0) { // Always align the first window to the display's left edge x = 0; - } else if (index == space.length-1) { + } else if (index == space.length-1 && x + frame.width >= space.width) { // Always align the first window to the display's right edge x = space.width - frame.width; } else if (frame.width > space.width*0.9 - 2*(prefs.horizontal_margin + prefs.window_gap)) {