diff options
| author | arg@mig29 <unknown> | 2006-10-27 12:05:47 +0200 |
|---|---|---|
| committer | arg@mig29 <unknown> | 2006-10-27 12:05:47 +0200 |
| commit | 2b13e7466f4912e3778bf59e6aec3065443f08fe (patch) | |
| tree | 2595de166d7113d6b0cf6c96139f7ae25fb38b39 | |
| parent | stupid urxvt needs bg to highlight selections in a sane way, though that make... (diff) | |
| download | dwm-2b13e7466f4912e3778bf59e6aec3065443f08fe.tar.gz dwm-2b13e7466f4912e3778bf59e6aec3065443f08fe.zip | |
applied sanders max size fix
Diffstat (limited to '')
| -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; |
