summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-11-23 15:07:20 +0100
committerbakkeby <[email protected]>2020-11-23 15:07:20 +0100
commite26d50c1107c744b4778785d57d90e02ad9684f7 (patch)
tree994f4dccfa1960778ac89b38563146fc04a1a31f /patch
parent9a760f3ea26495c0c58d1a403f9fbff631adbb4d (diff)
downloaddwm-flexipatch-e26d50c1107c744b4778785d57d90e02ad9684f7.tar.gz
dwm-flexipatch-e26d50c1107c744b4778785d57d90e02ad9684f7.zip
flextile: allow nmaster of 0 to fall back to stack arrangement rather than master, ref. #81
Diffstat (limited to 'patch')
-rw-r--r--patch/layout_flextile-deluxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch/layout_flextile-deluxe.c b/patch/layout_flextile-deluxe.c
index a23a3c0..96bc04b 100644
--- a/patch/layout_flextile-deluxe.c
+++ b/patch/layout_flextile-deluxe.c
@@ -90,7 +90,7 @@ setlayoutaxisex(const Arg *arg)
static void
layout_no_split(Monitor *m, int x, int y, int h, int w, int ih, int iv, int n)
{
- (&flextiles[m->ltaxis[MASTER]])->arrange(m, x, y, h, w, ih, iv, n, n, 0);
+ (&flextiles[m->ltaxis[m->nmaster >= n ? MASTER : STACK]])->arrange(m, x, y, h, w, ih, iv, n, n, 0);
}
static void