X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=view.c;h=bb322350810141767841dcadb01df539be3ec42f;hp=fce7309dc49e75631bb74c393b9381cca7b44e4f;hb=05c10c5776738fdfe73c1e66e14c869e2e5e338d;hpb=b2cb925d999f0b745f8be23316258c4f575cb343 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;