From 63424e9709751108c564f884cb4fdffab77c933d Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Fri, 26 Jun 2020 16:11:15 +0200 Subject: patched term to allow for arbitrary sizes --- sys/cmd/dwm/dwm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/cmd/dwm') 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; -- cgit v1.2.1