mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
docs: update
This commit is contained in:
parent
9ec0de3b35
commit
ee2d881f25
11
sowm.c
11
sowm.c
@ -163,9 +163,8 @@ void win_add(Window w) {
|
|||||||
c->prev = 0;
|
c->prev = 0;
|
||||||
c->win = w;
|
c->win = w;
|
||||||
head = c;
|
head = c;
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
} else {
|
||||||
for (t=head;t->next;t=t->next);
|
for (t=head;t->next;t=t->next);
|
||||||
|
|
||||||
c->next = 0;
|
c->next = 0;
|
||||||
@ -193,12 +192,11 @@ void win_del(Window w) {
|
|||||||
if (!c->prev) {
|
if (!c->prev) {
|
||||||
head = c->next;
|
head = c->next;
|
||||||
c->next->prev = 0;
|
c->next->prev = 0;
|
||||||
}
|
|
||||||
|
|
||||||
else if (!c->next)
|
} else if (!c->next) {
|
||||||
c->prev->next = 0;
|
c->prev->next = 0;
|
||||||
|
|
||||||
else {
|
} else {
|
||||||
c->prev->next = c->next;
|
c->prev->next = c->next;
|
||||||
c->next->prev = c->prev;
|
c->next->prev = c->prev;
|
||||||
}
|
}
|
||||||
@ -241,9 +239,8 @@ void win_fs(Window w) {
|
|||||||
c->h = attr.height;
|
c->h = attr.height;
|
||||||
|
|
||||||
XMoveResizeWindow(dis, w, 0, 0, sw, sh);
|
XMoveResizeWindow(dis, w, 0, 0, sw, sh);
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
} else {
|
||||||
c->f = 0;
|
c->f = 0;
|
||||||
|
|
||||||
XMoveResizeWindow(dis, w, c->x, c->y, c->w, c->h);
|
XMoveResizeWindow(dis, w, c->x, c->y, c->w, c->h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user