flextile: allow nmaster of 0 to fall back to stack arrangement rather than master, ref. #81

This commit is contained in:
bakkeby
2020-11-23 15:07:20 +01:00
parent 9a760f3ea2
commit e26d50c110
2 changed files with 5 additions and 5 deletions

View File

@ -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