aewl
diff view.c @ 481:382e3cb5d9a5
hotfix
author | arg@mmvi |
---|---|
date | Fri, 22 Sep 2006 13:58:21 +0200 |
parents | 680aca428830 |
children | c035a0b42560 |
line diff
1.1 --- a/view.c Fri Sep 22 13:53:28 2006 +0200 1.2 +++ b/view.c Fri Sep 22 13:58:21 2006 +0200 1.3 @@ -45,17 +45,18 @@ 1.4 static void 1.5 togglemax(Client *c) 1.6 { 1.7 + XEvent ev; 1.8 if((c->ismax = !c->ismax)) { 1.9 c->rx = c->x; c->x = sx; 1.10 c->ry = c->y; c->y = bh; 1.11 c->rw = c->w; c->w = sw; 1.12 - c->rh = c->h; c->h = sh; 1.13 + c->rh = c->h; c->h = sh - bh; 1.14 } 1.15 else { 1.16 c->x = c->rx; 1.17 c->y = c->ry; 1.18 - c->w = c->w; 1.19 - c->h = c->h; 1.20 + c->w = c->rw; 1.21 + c->h = c->rh; 1.22 } 1.23 resize(c, True, TopLeft); 1.24 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); 1.25 @@ -231,7 +232,7 @@ 1.26 restack() { 1.27 Client *c; 1.28 XEvent ev; 1.29 - 1.30 + 1.31 if(!sel) { 1.32 drawstatus(); 1.33 return; 1.34 @@ -296,7 +297,6 @@ 1.35 zoom(Arg *arg) { 1.36 unsigned int n; 1.37 Client *c; 1.38 - XEvent ev; 1.39 1.40 if(!sel) 1.41 return;