From 2a0fc84c4af2257d79c4c7cb37131c4acb763162 Mon Sep 17 00:00:00 2001 From: Anselm R. Garbe Date: Wed, 12 Jul 2006 00:00:25 +0200 Subject: some more additions/fixes --- cmd.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 4f1c84b..c14c3e6 100644 --- a/cmd.c +++ b/cmd.c @@ -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) { -- cgit v1.2.3