equal
deleted
inserted
replaced
6 |
6 |
7 /* static */ |
7 /* static */ |
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 |
15 static void |
15 static void |
16 togglemax(Client *c) { |
16 togglemax(Client *c) { |
123 focusnext(Arg *arg) { |
123 focusnext(Arg *arg) { |
124 Client *c; |
124 Client *c; |
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(); |
133 } |
134 } |
134 } |
135 } |
137 focusprev(Arg *arg) { |
138 focusprev(Arg *arg) { |
138 Client *c; |
139 Client *c; |
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); |
148 restack(); |
150 restack(); |
149 } |
151 } |