From 9c194659f5669a950b2cea1b4e581e7a00670475 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Mon, 9 Jul 2012 22:38:47 +0300 Subject: fix clients not getting tiled correctly if there was a fullscreen window, and a second client was spawned, it would not tile. this fixes that issue. --- monsterwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monsterwm.c') diff --git a/monsterwm.c b/monsterwm.c index 47001ed..e34b4cd 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -180,7 +180,7 @@ Client* addwindow(Window w, Desktop *d) { Client *c = NULL, *t = prevclient(d->head, d); if (!(c = (Client *)calloc(1, sizeof(Client)))) err(EXIT_FAILURE, "cannot allocate client"); - if (!d->head) d->head = c; + if (!d->head) d->head = d->curr = c; else if (!ATTACH_ASIDE) { c->next = d->head; d->head = c; } else if (t) t->next = c; else d->head->next = c; -- cgit v1.3.1