hotfix
67986e81
1 file(s) · +5 −5
| 45 | 45 | static void |
|
| 46 | 46 | togglemax(Client *c) |
|
| 47 | 47 | { |
|
| 48 | + | XEvent ev; |
|
| 48 | 49 | if((c->ismax = !c->ismax)) { |
|
| 49 | 50 | c->rx = c->x; c->x = sx; |
|
| 50 | 51 | c->ry = c->y; c->y = bh; |
|
| 51 | 52 | c->rw = c->w; c->w = sw; |
|
| 52 | - | c->rh = c->h; c->h = sh; |
|
| 53 | + | c->rh = c->h; c->h = sh - bh; |
|
| 53 | 54 | } |
|
| 54 | 55 | else { |
|
| 55 | 56 | c->x = c->rx; |
|
| 56 | 57 | c->y = c->ry; |
|
| 57 | - | c->w = c->w; |
|
| 58 | - | c->h = c->h; |
|
| 58 | + | c->w = c->rw; |
|
| 59 | + | c->h = c->rh; |
|
| 59 | 60 | } |
|
| 60 | 61 | resize(c, True, TopLeft); |
|
| 61 | 62 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
|
| 231 | 232 | restack() { |
|
| 232 | 233 | Client *c; |
|
| 233 | 234 | XEvent ev; |
|
| 234 | - | ||
| 235 | + | ||
| 235 | 236 | if(!sel) { |
|
| 236 | 237 | drawstatus(); |
|
| 237 | 238 | return; |
|
| 296 | 297 | zoom(Arg *arg) { |
|
| 297 | 298 | unsigned int n; |
|
| 298 | 299 | Client *c; |
|
| 299 | - | XEvent ev; |
|
| 300 | 300 | ||
| 301 | 301 | if(!sel) |
|
| 302 | 302 | return; |
|