Mercurial > aewl
changeset 286:ff501d94de62
fixed
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Mon, 14 Aug 2006 17:48:54 +0200 (2006-08-14) |
parents | e864d658eb02 |
children | 5e5e5392c7cb |
files | client.c event.c |
diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/client.c Mon Aug 14 17:14:22 2006 +0200 +++ b/client.c Mon Aug 14 17:48:54 2006 +0200 @@ -49,10 +49,12 @@ void focus(Client *c) { + Client *old = sel; + if (!issel) return; - Client *old = sel; - + if(sel && sel->ismax) + togglemax(NULL); sel = c; if(old && old != c) drawtitle(old); @@ -68,9 +70,6 @@ if(!sel) return; - if(sel->ismax) - togglemax(NULL); - if(!(c = getnext(sel->next))) c = getnext(clients); if(c) { @@ -87,9 +86,6 @@ if(!sel) return; - if(sel->ismax) - togglemax(NULL); - if(!(c = getprev(sel->prev))) { for(c = clients; c && c->next; c = c->next); c = getprev(c);
--- a/event.c Mon Aug 14 17:14:22 2006 +0200 +++ b/event.c Mon Aug 14 17:48:54 2006 +0200 @@ -144,11 +144,11 @@ static void configurerequest(XEvent *e) { + unsigned long newmask; Client *c; XConfigureRequestEvent *ev = &e->xconfigurerequest; XEvent synev; XWindowChanges wc; - unsigned long newmask; if((c = getclient(ev->window))) { gravitate(c, True);