diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-07-09 22:38:47 +0300 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-07-20 18:52:17 +0300 |
| commit | 9c194659f5669a950b2cea1b4e581e7a00670475 (patch) | |
| tree | 2e8dfbf54c2d053813d4b16df4e16ea16b502aae /monsterwm.c | |
| parent | 2abc1ac242714f03d4a112e198e8b458efbbb777 (diff) | |
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.
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
