diff options
author | Nicholas Noll <nnoll523@gmail.com> | 2020-06-26 16:11:15 +0200 |
---|---|---|
committer | Nicholas Noll <nnoll523@gmail.com> | 2020-06-26 16:11:15 +0200 |
commit | 63424e9709751108c564f884cb4fdffab77c933d (patch) | |
tree | 6d9eb9e94e2fc553852ffce39f43201c005151c1 /sys/cmd/dwm/dwm.c | |
parent | 641ea1557ccc0099ef5471a16503938bd00924af (diff) |
patched term to allow for arbitrary sizes
Diffstat (limited to 'sys/cmd/dwm/dwm.c')
-rw-r--r-- | sys/cmd/dwm/dwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/cmd/dwm/dwm.c b/sys/cmd/dwm/dwm.c index 7033d65..afc7e30 100644 --- a/sys/cmd/dwm/dwm.c +++ b/sys/cmd/dwm/dwm.c @@ -854,7 +854,9 @@ tile(Monitor *m) uint i, n, h, r, mw, my, ty; Client *c; - for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); + for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++) + ; + if (n == 0) return; |