fixed issue pointed out by Jukka - dwm - dynamic window manager HTML git clone https://git.parazyd.org/dwm DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 05c10c5776738fdfe73c1e66e14c869e2e5e338d DIR parent b2cb925d999f0b745f8be23316258c4f575cb343 HTML Author: arg@mmvi <unknown> Date: Fri, 22 Sep 2006 11:49:24 +0200 fixed issue pointed out by Jukka Diffstat: M client.c | 4 ---- M dwm.1 | 2 +- M dwm.h | 1 - M view.c | 8 ++++---- 4 files changed, 5 insertions(+), 10 deletions(-) --- DIR diff --git a/client.c b/client.c @@ -206,10 +206,6 @@ manage(Window w, XWindowAttributes *wa) { c->w = c->tw = wa->width; c->h = wa->height; c->th = bh; - c->rx = sx; - c->ry = bh; - c->rw = sw; - c->rh = sh - bh; c->border = 0; updatesize(c); DIR diff --git a/dwm.1 b/dwm.1 @@ -60,7 +60,7 @@ Focus next window. Focus previous window. .TP .B Mod1-Return -Zooms/cycles current window to/from master column (tiling mode), toggles maximization (floating mode). +Zooms/cycles current window to/from master column (tiling mode), maximizes current window (floating mode). .TP .B Mod1-g Grow current column (tiling mode only). DIR diff --git a/dwm.h b/dwm.h @@ -78,7 +78,6 @@ struct Client { int proto; int x, y, w, h; int tx, ty, tw, th; /* title window geometry */ - int rx, ry, rw, rh; /* revert geometry */ int basew, baseh, incw, inch, maxw, maxh, minw, minh; int grav; long flags; DIR diff --git a/view.c b/view.c @@ -278,10 +278,10 @@ zoom(Arg *arg) { return; if(sel->isfloat || (arrange == dofloat)) { - tmp = sel->x; sel->x = sel->rx; sel->rx = tmp; - tmp = sel->y; sel->y = sel->ry; sel->ry = tmp; - tmp = sel->w; sel->w = sel->rw; sel->rw = tmp; - tmp = sel->h; sel->h = sel->rh; sel->rh = tmp; + sel->x = sx; + sel->y = bh; + sel->w = sw; + sel->h = sh - bh; resize(sel, True, TopLeft); while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); return;