From c0ee689d1cf50907288662f9a7acfa05abefb08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Tue, 15 Oct 2019 20:24:37 +0200 Subject: [PATCH] free-resize: add a 100% step to cycle window height for single windows Poor-mans maximize height in free-resize mode --- tiling.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tiling.js b/tiling.js index 36e2693..afc37f9 100644 --- a/tiling.js +++ b/tiling.js @@ -2558,9 +2558,11 @@ function cycleWindowHeight(metaWindow) { }); } - if (space[i].length >= 1) { - space.layout(false, {customAllocators: {[i]: allocate}}); + if (space[i].length === 1) { + steps = [].concat(steps, [1.0]); } + + space.layout(false, {customAllocators: {[i]: allocate}}); } else { // Not in tiling let workspace = metaWindow.get_workspace();