static RReg *rreg = NULL;
static unsigned int len = 0;
-static void
-commit()
-{
- /* asserts sel != NULL */
- settitle(sel);
- if(!isvisible(sel))
- arrange(NULL);
- else
- drawstatus();
-}
-
/* extern */
Client *
for(i = 0; i < ntags; i++)
sel->tags[i] = False;
sel->tags[arg->i] = True;
- commit();
+ arrange(NULL);
}
void
for(i = 0; i < ntags && !sel->tags[i]; i++);
if(i == ntags)
sel->tags[arg->i] = True;
- commit();
+ arrange(NULL);
}
else
ban(c);
}
- if((sel = getnext(clients)))
+ if(!sel || !isvisible(sel))
+ sel = getnext(clients);
+ if(sel)
focus(sel);
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
else
ban(c);
}
- if((sel = getnext(clients)))
+ if(!sel || !isvisible(sel))
+ sel = getnext(clients);
+ if(sel)
focus(sel);
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);