fixed
4ad20ffc
2 file(s) · +5 −9
| 49 | 49 | void |
|
| 50 | 50 | focus(Client *c) |
|
| 51 | 51 | { |
|
| 52 | - | if (!issel) |
|
| 53 | - | return; |
|
| 54 | 52 | Client *old = sel; |
|
| 55 | 53 | ||
| 54 | + | if (!issel) |
|
| 55 | + | return; |
|
| 56 | + | if(sel && sel->ismax) |
|
| 57 | + | togglemax(NULL); |
|
| 56 | 58 | sel = c; |
|
| 57 | 59 | if(old && old != c) |
|
| 58 | 60 | drawtitle(old); |
|
| 68 | 70 | if(!sel) |
|
| 69 | 71 | return; |
|
| 70 | 72 | ||
| 71 | - | if(sel->ismax) |
|
| 72 | - | togglemax(NULL); |
|
| 73 | - | ||
| 74 | 73 | if(!(c = getnext(sel->next))) |
|
| 75 | 74 | c = getnext(clients); |
|
| 76 | 75 | if(c) { |
|
| 86 | 85 | ||
| 87 | 86 | if(!sel) |
|
| 88 | 87 | return; |
|
| 89 | - | ||
| 90 | - | if(sel->ismax) |
|
| 91 | - | togglemax(NULL); |
|
| 92 | 88 | ||
| 93 | 89 | if(!(c = getprev(sel->prev))) { |
|
| 94 | 90 | for(c = clients; c && c->next; c = c->next); |
|
| 144 | 144 | static void |
|
| 145 | 145 | configurerequest(XEvent *e) |
|
| 146 | 146 | { |
|
| 147 | + | unsigned long newmask; |
|
| 147 | 148 | Client *c; |
|
| 148 | 149 | XConfigureRequestEvent *ev = &e->xconfigurerequest; |
|
| 149 | 150 | XEvent synev; |
|
| 150 | 151 | XWindowChanges wc; |
|
| 151 | - | unsigned long newmask; |
|
| 152 | 152 | ||
| 153 | 153 | if((c = getclient(ev->window))) { |
|
| 154 | 154 | gravitate(c, True); |