Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30f405d
)
focusstack(0) focuses master
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 17 Nov 2014 01:30:07 +0000
(20:30 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 17 Nov 2014 01:30:07 +0000
(20:30 -0500)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
31fad43
..
74a28a3
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-851,7
+851,14
@@
focusstack(const Arg *arg) {
if(!selmon->sel)
return;
if(!selmon->sel)
return;
- if(arg->i > 0) {
+ if(arg->i == 0) {
+ for(i = selmon->clients; i != selmon->sel; i = i->next) {
+ if(ISVISIBLE(i)) {
+ c = i;
+ break;
+ }
+ }
+ } else if(arg->i > 0) {
for(c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);
if(!c)
for(c = selmon->clients; c && !ISVISIBLE(c); c = c->next);
for(c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);
if(!c)
for(c = selmon->clients; c && !ISVISIBLE(c); c = c->next);