mirror of
https://github.com/0intro/wmii
synced 2025-01-07 19:12:03 +03:00
Backout aforementioned for-loop cleanup for breakage
This commit is contained in:
parent
7f55639aa7
commit
5c56c012d5
8
view.c
8
view.c
@ -87,11 +87,9 @@ destroy_view(View *v) {
|
||||
for(i=&view; *i; i=&(*i)->next)
|
||||
if(*i == v) break;
|
||||
*i = v->next;
|
||||
if(screen->sel == v) {
|
||||
for(v = view; v && v->next; v = v->next)
|
||||
if(v->next == *i) break;
|
||||
screen->sel = v;
|
||||
}
|
||||
if(screen->sel == v)
|
||||
for(screen->sel=view; screen->sel && screen->sel->next; screen->sel=screen->sel->next)
|
||||
if(screen->sel->next == *i) break;
|
||||
write_event("DestroyTag %s\n", v->name);
|
||||
free(v);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user