mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-08 16:10:58 +00:00
docs: update
This commit is contained in:
1 parent
2d71b2d74d
commit
bdc6cf84c8
1 file changed
+8
-8
@@ -97,8 +97,8 @@ void win_add(Window w) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
if (!head) {
|
if (!head) {
|
||||||
c->next = NULL;
|
c->next = 0;
|
||||||
c->prev = NULL;
|
c->prev = 0;
|
||||||
c->win = w;
|
c->win = w;
|
||||||
head = c;
|
head = c;
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@ void win_add(Window w) {
|
|||||||
else {
|
else {
|
||||||
for (t=head;t->next;t=t->next);
|
for (t=head;t->next;t=t->next);
|
||||||
|
|
||||||
c->next = NULL;
|
c->next = 0;
|
||||||
c->prev = t;
|
c->prev = t;
|
||||||
c->win = w;
|
c->win = w;
|
||||||
t->next = c;
|
t->next = c;
|
||||||
@@ -330,7 +330,7 @@ void win_del(Window w) {
|
|||||||
if (!c->prev && !c->next) {
|
if (!c->prev && !c->next) {
|
||||||
free(head);
|
free(head);
|
||||||
|
|
||||||
head = NULL;
|
head = 0;
|
||||||
|
|
||||||
ws_save(desk);
|
ws_save(desk);
|
||||||
return;
|
return;
|
||||||
@@ -338,11 +338,11 @@ void win_del(Window w) {
|
|||||||
|
|
||||||
if (!c->prev) {
|
if (!c->prev) {
|
||||||
head = c->next;
|
head = c->next;
|
||||||
c->next->prev = NULL;
|
c->next->prev = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (!c->next) {
|
else if (!c->next) {
|
||||||
c->prev->next = NULL;
|
c->prev->next = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
@@ -376,7 +376,7 @@ void wm_setup() {
|
|||||||
key_grab();
|
key_grab();
|
||||||
|
|
||||||
for(int i=0; i < sizeof(ws_list)/sizeof(*ws_list); ++i)
|
for(int i=0; i < sizeof(ws_list)/sizeof(*ws_list); ++i)
|
||||||
ws_list[i].head = NULL;
|
ws_list[i].head = 0;
|
||||||
|
|
||||||
const Arg arg = {.i = 1};
|
const Arg arg = {.i = 1};
|
||||||
ws_go(arg);
|
ws_go(arg);
|
||||||
@@ -409,7 +409,7 @@ void wm_init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
if ((dis = XOpenDisplay(NULL))) {
|
if ((dis = XOpenDisplay(0))) {
|
||||||
wm_setup();
|
wm_setup();
|
||||||
wm_init();
|
wm_init();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user