diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-16 10:20:34 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-16 10:20:34 +0100 |
| commit | 8a5f002c4182abf6dcaac354a3da04cc18830ad9 (patch) | |
| tree | 91aa8fba3524ed70aa037f49ee0abcf93ea64acb /view.c | |
| parent | added ban() which takes care than a banned window is not banned again... (thi... (diff) | |
| download | dwm-8a5f002c4182abf6dcaac354a3da04cc18830ad9.tar.gz dwm-8a5f002c4182abf6dcaac354a3da04cc18830ad9.zip | |
removed getnext/getprev, redundant
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -8,7 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | static Client * | 9 | static Client * |
| 10 | nexttiled(Client *c) { | 10 | nexttiled(Client *c) { |
| 11 | for(c = getnext(c); c && c->isfloat; c = getnext(c->next)); | 11 | for(; c && (c->isfloat || !isvisible(c)); c = c->next); |
| 12 | return c; | 12 | return c; |
| 13 | } | 13 | } |
| 14 | 14 | ||
| @@ -125,8 +125,9 @@ focusnext(Arg *arg) { | |||
| 125 | 125 | ||
| 126 | if(!sel) | 126 | if(!sel) |
| 127 | return; | 127 | return; |
| 128 | if(!(c = getnext(sel->next))) | 128 | for(c = sel->next; c && !isvisible(c); c = c->next); |
| 129 | c = getnext(clients); | 129 | if(!c) |
| 130 | for(c = clients; c && !isvisible(c); c = c->next); | ||
| 130 | if(c) { | 131 | if(c) { |
| 131 | focus(c); | 132 | focus(c); |
| 132 | restack(); | 133 | restack(); |
| @@ -139,9 +140,10 @@ focusprev(Arg *arg) { | |||
| 139 | 140 | ||
| 140 | if(!sel) | 141 | if(!sel) |
| 141 | return; | 142 | return; |
| 142 | if(!(c = getprev(sel->prev))) { | 143 | for(c = sel->prev; c && !isvisible(c); c = c->prev); |
| 144 | if(!c) { | ||
| 143 | for(c = clients; c && c->next; c = c->next); | 145 | for(c = clients; c && c->next; c = c->next); |
| 144 | c = getprev(c); | 146 | for(; c && !isvisible(c); c = c->prev); |
| 145 | } | 147 | } |
| 146 | if(c) { | 148 | if(c) { |
| 147 | focus(c); | 149 | focus(c); |
