some more additions/fixes

This commit is contained in:
Anselm R. Garbe
2006-07-12 00:00:25 +02:00
parent 896f08d7d5
commit 2a0fc84c4a
5 changed files with 32 additions and 3 deletions

16
cmd.c
View File

@ -19,6 +19,22 @@ quit(void *aux)
running = False;
}
void
sel(void *aux)
{
const char *arg = aux;
Client *c;
if(!arg || !stack)
return;
if(!strncmp(arg, "next", 5))
focus(stack->snext ? stack->snext : stack);
else if(!strncmp(arg, "prev", 5)) {
for(c = stack; c && c->snext; c = c->snext);
focus(c ? c : stack);
}
}
void
kill(void *aux)
{