fixed issue pointed out by Jukka
authorarg@mmvi
Fri, 22 Sep 2006 11:49:24 +0200
changeset 479 de69a7b0c8fa
parent 478 635b58a87d20
child 480 680aca428830
fixed issue pointed out by Jukka
client.c
dwm.1
dwm.h
view.c
--- a/client.c	Fri Sep 22 11:24:01 2006 +0200
+++ b/client.c	Fri Sep 22 11:49:24 2006 +0200
@@ -206,10 +206,6 @@
 	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);
--- a/dwm.1	Fri Sep 22 11:24:01 2006 +0200
+++ b/dwm.1	Fri Sep 22 11:49:24 2006 +0200
@@ -60,7 +60,7 @@
 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).
--- a/dwm.h	Fri Sep 22 11:24:01 2006 +0200
+++ b/dwm.h	Fri Sep 22 11:49:24 2006 +0200
@@ -78,7 +78,6 @@
 	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; 
--- a/view.c	Fri Sep 22 11:24:01 2006 +0200
+++ b/view.c	Fri Sep 22 11:49:24 2006 +0200
@@ -278,10 +278,10 @@
 		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;