aewl
changeset 488:0d2559f46b9e
applied sanders jukka patch
author | arg@mmvi |
---|---|
date | Mon, 25 Sep 2006 20:38:30 +0200 |
parents | be4f90c03582 |
children | d34374cbe926 |
files | dwm.h event.c view.c |
diffstat | 3 files changed, 5 insertions(+), 11 deletions(-) [+] |
line diff
1.1 --- a/dwm.h Mon Sep 25 08:21:51 2006 +0200 1.2 +++ b/dwm.h Mon Sep 25 20:38:30 2006 +0200 1.3 @@ -101,7 +101,7 @@ 1.4 extern void (*arrange)(Arg *); /* arrange function, indicates mode */ 1.5 extern Atom wmatom[WMLast], netatom[NetLast]; 1.6 extern Bool running, issel, *seltag; /* seltag is array of Bool */ 1.7 -extern Client *clients, *sel, *stack; /* global cleint list and stack */ 1.8 +extern Client *clients, *sel, *stack; /* global client list and stack */ 1.9 extern Cursor cursor[CurLast]; 1.10 extern DC dc; /* global draw context */ 1.11 extern Display *dpy;
2.1 --- a/event.c Mon Sep 25 08:21:51 2006 +0200 2.2 +++ b/event.c Mon Sep 25 20:38:30 2006 +0200 2.3 @@ -190,11 +190,7 @@ 2.4 XWindowChanges wc; 2.5 2.6 if((c = getclient(ev->window))) { 2.7 - if((c == sel) && !c->isfloat && (arrange != dofloat)) { 2.8 - synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width); 2.9 - XSync(dpy, False); 2.10 - return; 2.11 - } 2.12 + c->ismax = False; 2.13 gravitate(c, True); 2.14 if(ev->value_mask & CWX) 2.15 c->x = ev->x;
3.1 --- a/view.c Mon Sep 25 08:21:51 2006 +0200 3.2 +++ b/view.c Mon Sep 25 20:38:30 2006 +0200 3.3 @@ -101,9 +101,8 @@ 3.4 Client *c; 3.5 3.6 w = sw - mw; 3.7 - for(n = 0, c = clients; c; c = c->next) 3.8 - if(isvisible(c) && !c->isfloat) 3.9 - n++; 3.10 + for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 3.11 + n++; 3.12 3.13 if(n > 1) 3.14 h = (sh - bh) / (n - 1); 3.15 @@ -116,8 +115,7 @@ 3.16 resize(c, True, TopLeft); 3.17 continue; 3.18 } 3.19 - if(c->ismax) 3.20 - togglemax(c); 3.21 + c->ismax = False; 3.22 if(n == 1) { 3.23 c->x = sx; 3.24 c->y = sy + bh;