diff options
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; |