-appendtag(Arg *arg)
-{
- if(!sel)
- return;
-
- sel->tags[arg->i] = True;
- arrange(NULL);
-}
-
-void
-dofloat(Arg *arg)
-{
- Client *c;
-
- for(c = clients; c; c = c->next) {
- c->ismax = False;
- if(c->tags[tsel]) {
- resize(c, True, TopLeft);
- }
- else
- ban(c);
- }
- if(sel && !sel->tags[tsel]) {
- if((sel = getnext(clients))) {
- higher(sel);
- focus(sel);
- }
- else
- XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
- }
- drawall();
-}
-
-void
-dotile(Arg *arg)
-{
- int n, i, w, h;
- Client *c;
-
- w = sw - mw;
- for(n = 0, c = clients; c; c = c->next)
- if(c->tags[tsel] && !c->isfloat)
- n++;