diff options
| author | arg@mig29 <unknown> | 2006-10-27 13:28:26 +0200 |
|---|---|---|
| committer | arg@mig29 <unknown> | 2006-10-27 13:28:26 +0200 |
| commit | 0f395c1b115280a0976a85940c714152d8a58dac (patch) | |
| tree | 5c5bbe75eea20f4fdc4e1e69d7a5a17d53dca467 | |
| parent | applied sanders max size fix (diff) | |
| download | dwm-0f395c1b115280a0976a85940c714152d8a58dac.tar.gz dwm-0f395c1b115280a0976a85940c714152d8a58dac.zip | |
applied sanders try2 patch
| -rw-r--r-- | client.c | 6 | ||||
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | event.c | 2 | ||||
| -rw-r--r-- | view.c | 3 |
4 files changed, 6 insertions, 7 deletions
| @@ -209,6 +209,8 @@ manage(Window w, XWindowAttributes *wa) { | |||
| 209 | c->h = wa->height; | 209 | c->h = wa->height; |
| 210 | c->th = bh; | 210 | c->th = bh; |
| 211 | updatesize(c); | 211 | updatesize(c); |
| 212 | c->isfixed = (c->maxw && c->minw && c->maxh && c->minh && | ||
| 213 | c->maxw == c->minw && c->maxh == c->minh); | ||
| 212 | if(c->x + c->w + 2 * BORDERPX > sw) | 214 | if(c->x + c->w + 2 * BORDERPX > sw) |
| 213 | c->x = sw - c->w - 2 * BORDERPX; | 215 | c->x = sw - c->w - 2 * BORDERPX; |
| 214 | if(c->x < sx) | 216 | if(c->x < sx) |
| @@ -232,9 +234,7 @@ manage(Window w, XWindowAttributes *wa) { | |||
| 232 | updatetitle(c); | 234 | updatetitle(c); |
| 233 | settags(c, getclient(trans)); | 235 | settags(c, getclient(trans)); |
| 234 | if(!c->isfloat) | 236 | if(!c->isfloat) |
| 235 | c->isfloat = trans | 237 | c->isfloat = trans || c->isfixed; |
| 236 | || (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) |
| 240 | clients->prev = c; | 240 | clients->prev = c; |
| @@ -83,7 +83,7 @@ struct Client { | |||
| 83 | int grav; | 83 | int grav; |
| 84 | long flags; | 84 | long flags; |
| 85 | unsigned int border, weight; | 85 | unsigned int border, weight; |
| 86 | Bool isfloat, ismax; | 86 | Bool isfloat, isfixed, ismax; |
| 87 | Bool *tags; | 87 | Bool *tags; |
| 88 | Client *next; | 88 | Client *next; |
| 89 | Client *prev; | 89 | Client *prev; |
| @@ -136,7 +136,7 @@ buttonpress(XEvent *e) { | |||
| 136 | } | 136 | } |
| 137 | else if(ev->button == Button2) | 137 | else if(ev->button == Button2) |
| 138 | zoom(NULL); | 138 | zoom(NULL); |
| 139 | else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) { | 139 | else if(ev->button == Button3 && (arrange == dofloat || c->isfloat) && !c->isfixed) { |
| 140 | restack(); | 140 | restack(); |
| 141 | resizemouse(c); | 141 | resizemouse(c); |
| 142 | } | 142 | } |
| @@ -45,8 +45,7 @@ static void | |||
| 45 | togglemax(Client *c) { | 45 | togglemax(Client *c) { |
| 46 | XEvent ev; | 46 | XEvent ev; |
| 47 | 47 | ||
| 48 | if (x->maxw && x->minw && x->maxh && x->minh && | 48 | if(c->isfixed) |
| 49 | x->maxw == x->minw && x->maxh == x->minh) | ||
| 50 | return; | 49 | return; |
| 51 | 50 | ||
| 52 | if((c->ismax = !c->ismax)) { | 51 | if((c->ismax = !c->ismax)) { |
