about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c4
-rw-r--r--dwm.12
-rw-r--r--dwm.h1
-rw-r--r--view.c8
4 files changed, 5 insertions, 10 deletions
diff --git a/client.c b/client.c
index 2f1e2b3..d5bc30e 100644
--- 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);
diff --git a/dwm.1 b/dwm.1
index 46d91c6..771036c 100644
--- 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).
diff --git a/dwm.h b/dwm.h
index 60f9201..2298369 100644
--- 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; 
diff --git a/view.c b/view.c
index fce7309..bb32235 100644
--- 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;
n225'>225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267