diff options
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | view.c | 4 |
2 files changed, 5 insertions, 1 deletions
| @@ -233,7 +233,7 @@ manage(Window w, XWindowAttributes *wa) { | |||
| 233 | settags(c, getclient(trans)); | 233 | settags(c, getclient(trans)); |
| 234 | if(!c->isfloat) | 234 | if(!c->isfloat) |
| 235 | c->isfloat = trans | 235 | c->isfloat = trans |
| 236 | || (c->maxw && c->minw && | 236 | || (c->maxw && c->minw && c->maxh && c->minh && |
| 237 | c->maxw == c->minw && c->maxh == c->minh); | 237 | c->maxw == c->minw && c->maxh == c->minh); |
| 238 | resizetitle(c); | 238 | resizetitle(c); |
| 239 | if(clients) | 239 | if(clients) |
| @@ -44,6 +44,10 @@ reorder(void) { | |||
| 44 | static void | 44 | static void |
| 45 | togglemax(Client *c) { | 45 | togglemax(Client *c) { |
| 46 | XEvent ev; | 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 | if((c->ismax = !c->ismax)) { | 52 | if((c->ismax = !c->ismax)) { |
| 49 | c->rx = c->x; c->x = sx; | 53 | c->rx = c->x; c->x = sx; |
