diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 17:48:54 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 17:48:54 +0200 |
| commit | 4ad20ffc2c23d29329bc7349985d889f2cb45612 (patch) | |
| tree | 24a0f665a6e14c68784242f5af875caf9d727a7d | |
| parent | added missing arrange (diff) | |
| download | dwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.tar.gz dwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.zip | |
fixed
| -rw-r--r-- | client.c | 12 | ||||
| -rw-r--r-- | event.c | 2 |
2 files changed, 5 insertions, 9 deletions
| @@ -49,10 +49,12 @@ ban(Client *c) | |||
| 49 | void | 49 | void |
| 50 | focus(Client *c) | 50 | focus(Client *c) |
| 51 | { | 51 | { |
| 52 | if (!issel) | ||
| 53 | return; | ||
| 54 | Client *old = sel; | 52 | Client *old = sel; |
| 55 | 53 | ||
| 54 | if (!issel) | ||
| 55 | return; | ||
| 56 | if(sel && sel->ismax) | ||
| 57 | togglemax(NULL); | ||
| 56 | sel = c; | 58 | sel = c; |
| 57 | if(old && old != c) | 59 | if(old && old != c) |
| 58 | drawtitle(old); | 60 | drawtitle(old); |
| @@ -68,9 +70,6 @@ focusnext(Arg *arg) | |||
| 68 | if(!sel) | 70 | if(!sel) |
| 69 | return; | 71 | return; |
| 70 | 72 | ||
| 71 | if(sel->ismax) | ||
| 72 | togglemax(NULL); | ||
| 73 | |||
| 74 | if(!(c = getnext(sel->next))) | 73 | if(!(c = getnext(sel->next))) |
| 75 | c = getnext(clients); | 74 | c = getnext(clients); |
| 76 | if(c) { | 75 | if(c) { |
| @@ -87,9 +86,6 @@ focusprev(Arg *arg) | |||
| 87 | if(!sel) | 86 | if(!sel) |
| 88 | return; | 87 | return; |
| 89 | 88 | ||
| 90 | if(sel->ismax) | ||
| 91 | togglemax(NULL); | ||
| 92 | |||
| 93 | if(!(c = getprev(sel->prev))) { | 89 | if(!(c = getprev(sel->prev))) { |
| 94 | for(c = clients; c && c->next; c = c->next); | 90 | for(c = clients; c && c->next; c = c->next); |
| 95 | c = getprev(c); | 91 | c = getprev(c); |
| @@ -144,11 +144,11 @@ buttonpress(XEvent *e) | |||
| 144 | static void | 144 | static void |
| 145 | configurerequest(XEvent *e) | 145 | configurerequest(XEvent *e) |
| 146 | { | 146 | { |
| 147 | unsigned long newmask; | ||
| 147 | Client *c; | 148 | Client *c; |
| 148 | XConfigureRequestEvent *ev = &e->xconfigurerequest; | 149 | XConfigureRequestEvent *ev = &e->xconfigurerequest; |
| 149 | XEvent synev; | 150 | XEvent synev; |
| 150 | XWindowChanges wc; | 151 | XWindowChanges wc; |
| 151 | unsigned long newmask; | ||
| 152 | 152 | ||
| 153 | if((c = getclient(ev->window))) { | 153 | if((c = getclient(ev->window))) { |
| 154 | gravitate(c, True); | 154 | gravitate(c, True); |
