Mercurial > dwm-meillo
comparison view.c @ 481:382e3cb5d9a5
hotfix
author | arg@mmvi |
---|---|
date | Fri, 22 Sep 2006 13:58:21 +0200 |
parents | 680aca428830 |
children | c035a0b42560 |
comparison
equal
deleted
inserted
replaced
480:680aca428830 | 481:382e3cb5d9a5 |
---|---|
43 } | 43 } |
44 | 44 |
45 static void | 45 static void |
46 togglemax(Client *c) | 46 togglemax(Client *c) |
47 { | 47 { |
48 XEvent ev; | |
48 if((c->ismax = !c->ismax)) { | 49 if((c->ismax = !c->ismax)) { |
49 c->rx = c->x; c->x = sx; | 50 c->rx = c->x; c->x = sx; |
50 c->ry = c->y; c->y = bh; | 51 c->ry = c->y; c->y = bh; |
51 c->rw = c->w; c->w = sw; | 52 c->rw = c->w; c->w = sw; |
52 c->rh = c->h; c->h = sh; | 53 c->rh = c->h; c->h = sh - bh; |
53 } | 54 } |
54 else { | 55 else { |
55 c->x = c->rx; | 56 c->x = c->rx; |
56 c->y = c->ry; | 57 c->y = c->ry; |
57 c->w = c->w; | 58 c->w = c->rw; |
58 c->h = c->h; | 59 c->h = c->rh; |
59 } | 60 } |
60 resize(c, True, TopLeft); | 61 resize(c, True, TopLeft); |
61 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | 62 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
62 } | 63 } |
63 | 64 |
229 | 230 |
230 void | 231 void |
231 restack() { | 232 restack() { |
232 Client *c; | 233 Client *c; |
233 XEvent ev; | 234 XEvent ev; |
234 | 235 |
235 if(!sel) { | 236 if(!sel) { |
236 drawstatus(); | 237 drawstatus(); |
237 return; | 238 return; |
238 } | 239 } |
239 if(sel->isfloat || arrange == dofloat) { | 240 if(sel->isfloat || arrange == dofloat) { |
294 | 295 |
295 void | 296 void |
296 zoom(Arg *arg) { | 297 zoom(Arg *arg) { |
297 unsigned int n; | 298 unsigned int n; |
298 Client *c; | 299 Client *c; |
299 XEvent ev; | |
300 | 300 |
301 if(!sel) | 301 if(!sel) |
302 return; | 302 return; |
303 | 303 |
304 if(sel->isfloat || (arrange == dofloat)) { | 304 if(sel->isfloat || (arrange == dofloat)) { |