comparison cmd.c @ 26:e8f627998d6f

simplified several portions of code through replacing rect structs with x,y,h,w counterparts (much more readable)
author Anselm R. Garbe <garbeam@wmii.de>
date Wed, 12 Jul 2006 15:17:22 +0200
parents 95ffdfd0a819
children
comparison
equal deleted inserted replaced
25:e238dc4844d7 26:e8f627998d6f
21 21
22 void 22 void
23 sel(void *aux) 23 sel(void *aux)
24 { 24 {
25 const char *arg = aux; 25 const char *arg = aux;
26 Client *c; 26 Client *c = NULL;
27 27
28 if(!arg || !stack) 28 if(!arg || !stack)
29 return; 29 return;
30 if(!strncmp(arg, "next", 5)) 30 if(!strncmp(arg, "next", 5))
31 focus(stack->snext ? stack->snext : stack); 31 c = stack->snext ? stack->snext : stack;
32 else if(!strncmp(arg, "prev", 5)) { 32 else if(!strncmp(arg, "prev", 5))
33 for(c = stack; c && c->snext; c = c->snext); 33 for(c = stack; c && c->snext; c = c->snext);
34 focus(c ? c : stack); 34 if(!c)
35 } 35 c = stack;
36 raise(c);
37 focus(c);
36 } 38 }
37 39
38 void 40 void
39 kill(void *aux) 41 kill(void *aux)
40 { 42 {