diff options
| author | arg@mmvi <unknown> | 2006-09-22 11:49:24 +0200 |
|---|---|---|
| committer | arg@mmvi <unknown> | 2006-09-22 11:49:24 +0200 |
| commit | 05c10c5776738fdfe73c1e66e14c869e2e5e338d (patch) | |
| tree | e18fa7daa43bfbd370723bf248f9a6e91b8430ba | |
| parent | patched resizemouse according to sanders remark (diff) | |
| download | dwm-05c10c5776738fdfe73c1e66e14c869e2e5e338d.tar.gz dwm-05c10c5776738fdfe73c1e66e14c869e2e5e338d.zip | |
fixed issue pointed out by Jukka
Diffstat (limited to '')
| -rw-r--r-- | client.c | 4 | ||||
| -rw-r--r-- | dwm.1 | 2 | ||||
| -rw-r--r-- | dwm.h | 1 | ||||
| -rw-r--r-- | view.c | 8 |
4 files changed, 5 insertions, 10 deletions
| @@ -206,10 +206,6 @@ manage(Window w, XWindowAttributes *wa) { | |||
| 206 | c->w = c->tw = wa->width; | 206 | c->w = c->tw = wa->width; |
| 207 | c->h = wa->height; | 207 | c->h = wa->height; |
| 208 | c->th = bh; | 208 | c->th = bh; |
| 209 | c->rx = sx; | ||
| 210 | c->ry = bh; | ||
| 211 | c->rw = sw; | ||
| 212 | c->rh = sh - bh; | ||
| 213 | 209 | ||
| 214 | c->border = 0; | 210 | c->border = 0; |
| 215 | updatesize(c); | 211 | updatesize(c); |
| @@ -60,7 +60,7 @@ Focus next window. | |||
| 60 | Focus previous window. | 60 | Focus previous window. |
| 61 | .TP | 61 | .TP |
| 62 | .B Mod1-Return | 62 | .B Mod1-Return |
| 63 | Zooms/cycles current window to/from master column (tiling mode), toggles maximization (floating mode). | 63 | Zooms/cycles current window to/from master column (tiling mode), maximizes current window (floating mode). |
| 64 | .TP | 64 | .TP |
| 65 | .B Mod1-g | 65 | .B Mod1-g |
| 66 | Grow current column (tiling mode only). | 66 | Grow current column (tiling mode only). |
| @@ -78,7 +78,6 @@ struct Client { | |||
| 78 | int proto; | 78 | int proto; |
| 79 | int x, y, w, h; | 79 | int x, y, w, h; |
| 80 | int tx, ty, tw, th; /* title window geometry */ | 80 | int tx, ty, tw, th; /* title window geometry */ |
| 81 | int rx, ry, rw, rh; /* revert geometry */ | ||
| 82 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; | 81 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
| 83 | int grav; | 82 | int grav; |
| 84 | long flags; | 83 | long flags; |
| @@ -278,10 +278,10 @@ zoom(Arg *arg) { | |||
| 278 | return; | 278 | return; |
| 279 | 279 | ||
| 280 | if(sel->isfloat || (arrange == dofloat)) { | 280 | if(sel->isfloat || (arrange == dofloat)) { |
| 281 | tmp = sel->x; sel->x = sel->rx; sel->rx = tmp; | 281 | sel->x = sx; |
| 282 | tmp = sel->y; sel->y = sel->ry; sel->ry = tmp; | 282 | sel->y = bh; |
| 283 | tmp = sel->w; sel->w = sel->rw; sel->rw = tmp; | 283 | sel->w = sw; |
| 284 | tmp = sel->h; sel->h = sel->rh; sel->rh = tmp; | 284 | sel->h = sh - bh; |
| 285 | resize(sel, True, TopLeft); | 285 | resize(sel, True, TopLeft); |
| 286 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | 286 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
| 287 | return; | 287 | return; |
