applied sanders max size fix
2b13e746
2 file(s) · +5 −1
| 233 | 233 | settags(c, getclient(trans)); |
|
| 234 | 234 | if(!c->isfloat) |
|
| 235 | 235 | c->isfloat = trans |
|
| 236 | - | || (c->maxw && c->minw && |
|
| 236 | + | || (c->maxw && c->minw && c->maxh && c->minh && |
|
| 237 | 237 | c->maxw == c->minw && c->maxh == c->minh); |
|
| 238 | 238 | resizetitle(c); |
|
| 239 | 239 | if(clients) |
| 44 | 44 | static void |
|
| 45 | 45 | togglemax(Client *c) { |
|
| 46 | 46 | XEvent ev; |
|
| 47 | + | ||
| 48 | + | if (x->maxw && x->minw && x->maxh && x->minh && |
|
| 49 | + | x->maxw == x->minw && x->maxh == x->minh) |
|
| 50 | + | return; |
|
| 47 | 51 | ||
| 48 | 52 | if((c->ismax = !c->ismax)) { |
|
| 49 | 53 | c->rx = c->x; c->x = sx; |