Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplified several portions of code through replacing rect structs with x,y,h,w count...
[dwm.git]
/
cmd.c
diff --git
a/cmd.c
b/cmd.c
index
c14c3e6
..
baa3ae9
100644
(file)
--- a/
cmd.c
+++ b/
cmd.c
@@
-23,16
+23,18
@@
void
sel(void *aux)
{
const char *arg = aux;
sel(void *aux)
{
const char *arg = aux;
- Client *c;
+ Client *c = NULL;
if(!arg || !stack)
return;
if(!strncmp(arg, "next", 5))
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);
for(c = stack; c && c->snext; c = c->snext);
- focus(c ? c : stack);
- }
+ if(!c)
+ c = stack;
+ raise(c);
+ focus(c);
}
void
}
void