aewl
diff cmd.c @ 23:95ffdfd0a819
some more additions/fixes
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Wed, 12 Jul 2006 00:00:25 +0200 |
parents | 5c078b66347b |
children | e8f627998d6f |
line diff
1.1 --- a/cmd.c Tue Jul 11 23:46:39 2006 +0200 1.2 +++ b/cmd.c Wed Jul 12 00:00:25 2006 +0200 1.3 @@ -20,6 +20,22 @@ 1.4 } 1.5 1.6 void 1.7 +sel(void *aux) 1.8 +{ 1.9 + const char *arg = aux; 1.10 + Client *c; 1.11 + 1.12 + if(!arg || !stack) 1.13 + return; 1.14 + if(!strncmp(arg, "next", 5)) 1.15 + focus(stack->snext ? stack->snext : stack); 1.16 + else if(!strncmp(arg, "prev", 5)) { 1.17 + for(c = stack; c && c->snext; c = c->snext); 1.18 + focus(c ? c : stack); 1.19 + } 1.20 +} 1.21 + 1.22 +void 1.23 kill(void *aux) 1.24 { 1.25 Client *c = stack;