aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-12 00:00:25 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-12 00:00:25 +0200
commit2a0fc84c4af2257d79c4c7cb37131c4acb763162 (patch)
treee335ce623b7f79186b52bc1d73acbfead90cab08 /cmd.c
parent896f08d7d553f7def3877648c113cf03e6ca546a (diff)
downloaddwm-2a0fc84c4af2257d79c4c7cb37131c4acb763162.tar.gz
some more additions/fixes
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index 4f1c84b..c14c3e6 100644
--- a/cmd.c
+++ b/cmd.c
@@ -20,6 +20,22 @@ quit(void *aux)
}
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)
{
Client *c = stack;