commit 8351d8c0dd14426a6b3d659939979bcc0d47d5b4
parent 473c4dec545d8fb4dd73773122a928444990c394
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Fri, 11 Oct 2019 22:29:36 +0300
docs: update
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/sowm.c b/sowm.c
@@ -97,20 +97,22 @@ void win_add(Window w) {
exit(1);
if (head == NULL) {
+ c->next = NULL;
c->prev = NULL;
+ c->win = w;
head = c;
}
else {
for (t=head;t->next;t=t->next);
+ c->next = NULL;
c->prev = t;
+ c->win = w;
t->next = c;
}
- c->next = NULL;
- c->win = w;
- cur = c;
+ cur = c;
}
void ws_go(const Arg arg) {