static Client *
nexttiled(Client *c) {
- for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
+ for(; c && (c->isfloat || !isvisible(c)); c = c->next);
return c;
}
Client *c;
for(c = clients; c; c = c->next) {
- if(isvisible(c))
+ if(isvisible(c)) {
+ c->isbanned = False;
resize(c, True);
+ }
else
- XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
+ ban(c);
}
if(!sel || !isvisible(sel)) {
for(c = stack; c && !isvisible(c); c = c->snext);
for(i = 0, c = clients; c; c = c->next)
if(isvisible(c)) {
+ c->isbanned = False;
if(c->isfloat) {
resize(c, True);
continue;
i++;
}
else
- XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
+ ban(c);
if(!sel || !isvisible(sel)) {
for(c = stack; c && !isvisible(c); c = c->snext);
focus(c);
if(!sel)
return;
- if(!(c = getnext(sel->next)))
- c = getnext(clients);
+ for(c = sel->next; c && !isvisible(c); c = c->next);
+ if(!c)
+ for(c = clients; c && !isvisible(c); c = c->next);
if(c) {
focus(c);
restack();
if(!sel)
return;
- if(!(c = getprev(sel->prev))) {
+ for(c = sel->prev; c && !isvisible(c); c = c->prev);
+ if(!c) {
for(c = clients; c && c->next; c = c->next);
- c = getprev(c);
+ for(; c && !isvisible(c); c = c->prev);
}
if(c) {
focus(c);