free-resize: add a 100% step to cycle window height for single windows

Poor-mans maximize height in free-resize mode
This commit is contained in:
Ole Jørgen Brønner
2019-10-15 20:24:37 +02:00
parent dc125d6b2c
commit c0ee689d1c

View File

@@ -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();