simplified several portions of code through replacing rect structs with x,y,h,w counterparts (much more readable)

This commit is contained in:
Anselm R. Garbe
2006-07-12 15:17:22 +02:00
parent 7696c89c90
commit dfd84f9bf3
12 changed files with 164 additions and 235 deletions

12
cmd.c
View File

@ -23,16 +23,18 @@ void
sel(void *aux)
{
const char *arg = aux;
Client *c;
Client *c = NULL;
if(!arg || !stack)
return;
if(!strncmp(arg, "next", 5))
focus(stack->snext ? stack->snext : stack);
else if(!strncmp(arg, "prev", 5)) {
c = stack->snext ? stack->snext : stack;
else if(!strncmp(arg, "prev", 5))
for(c = stack; c && c->snext; c = c->snext);
focus(c ? c : stack);
}
if(!c)
c = stack;
raise(c);
focus(c);
}
void