fixed issue pointed out by Jukka
authorarg@mmvi <unknown>
Fri, 22 Sep 2006 09:49:24 +0000 (11:49 +0200)
committerarg@mmvi <unknown>
Fri, 22 Sep 2006 09:49:24 +0000 (11:49 +0200)
client.c
dwm.1
dwm.h
view.c

index 2f1e2b3b391e21c9f9d1f449d15dddcd41b41ed0..d5bc30eba90bf642b0318c2817608bbe14716087 100644 (file)
--- 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 46d91c69a77c838dfcedd7c9fe9ad603df126308..771036c72ef02530fc3a99abebbbea0cc85d0ccd 100644 (file)
--- 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 60f9201ec18fb8dd1c725a993a5c5dd8612d8bb1..2298369c52b36ebcfc2a72453e3bcb78b60b8e37 100644 (file)
--- 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 fce7309dc49e75631bb74c393b9381cca7b44e4f..bb322350810141767841dcadb01df539be3ec42f 100644 (file)
--- 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;