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
(from parent 1:
e0fbc68
)
old code fix
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 3 Apr 2017 05:56:02 +0000
(
01:56
-0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 3 Apr 2017 05:56:02 +0000
(
01:56
-0400)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
b7f5a26
..
82bf8b7
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-748,10
+748,11
@@
detachstack(Client *c) {
for(i = nextvisible(c->mon->clients); i && i != c; i = nextvisible(i->next))
next_sel = i;
// failing that, find first visible window (besides c)
- if (!next_sel)
+ if (!next_sel) {
for(i = nextvisible(c->mon->clients); i && i == c; i = nextvisible(i->next));
if (i != c)
next_sel = i;
+ }
c->mon->sel = next_sel;
}
if (prev) {