hotfix
25947bcf
1 file(s) · +3 −3
| 600 | 600 | ||
| 601 | 601 | void |
|
| 602 | 602 | detachstack(Client *c) { |
|
| 603 | - | Client **tc; |
|
| 603 | + | Client **tc, *t; |
|
| 604 | 604 | ||
| 605 | 605 | for(tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext); |
|
| 606 | 606 | *tc = c->snext; |
|
| 607 | 607 | ||
| 608 | 608 | if(c == c->mon->sel) { |
|
| 609 | - | for(*tc = c->mon->stack; *tc && !ISVISIBLE((*tc)); *tc = (*tc)->snext); |
|
| 610 | - | c->mon->sel = *tc; |
|
| 609 | + | for(t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext); |
|
| 610 | + | c->mon->sel = t; |
|
| 611 | 611 | } |
|
| 612 | 612 | } |
|
| 613 | 613 |