dwm-meillo
changeset 286:ff501d94de62
fixed
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Mon, 14 Aug 2006 17:48:54 +0200 |
parents | e864d658eb02 |
children | 5e5e5392c7cb |
files | client.c event.c |
diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line diff
1.1 --- a/client.c Mon Aug 14 17:14:22 2006 +0200 1.2 +++ b/client.c Mon Aug 14 17:48:54 2006 +0200 1.3 @@ -49,10 +49,12 @@ 1.4 void 1.5 focus(Client *c) 1.6 { 1.7 + Client *old = sel; 1.8 + 1.9 if (!issel) 1.10 return; 1.11 - Client *old = sel; 1.12 - 1.13 + if(sel && sel->ismax) 1.14 + togglemax(NULL); 1.15 sel = c; 1.16 if(old && old != c) 1.17 drawtitle(old); 1.18 @@ -68,9 +70,6 @@ 1.19 if(!sel) 1.20 return; 1.21 1.22 - if(sel->ismax) 1.23 - togglemax(NULL); 1.24 - 1.25 if(!(c = getnext(sel->next))) 1.26 c = getnext(clients); 1.27 if(c) { 1.28 @@ -87,9 +86,6 @@ 1.29 if(!sel) 1.30 return; 1.31 1.32 - if(sel->ismax) 1.33 - togglemax(NULL); 1.34 - 1.35 if(!(c = getprev(sel->prev))) { 1.36 for(c = clients; c && c->next; c = c->next); 1.37 c = getprev(c);
2.1 --- a/event.c Mon Aug 14 17:14:22 2006 +0200 2.2 +++ b/event.c Mon Aug 14 17:48:54 2006 +0200 2.3 @@ -144,11 +144,11 @@ 2.4 static void 2.5 configurerequest(XEvent *e) 2.6 { 2.7 + unsigned long newmask; 2.8 Client *c; 2.9 XConfigureRequestEvent *ev = &e->xconfigurerequest; 2.10 XEvent synev; 2.11 XWindowChanges wc; 2.12 - unsigned long newmask; 2.13 2.14 if((c = getclient(ev->window))) { 2.15 gravitate(c, True);