projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9dee2c
)
fixed focusmon brokeness
author
Anselm R Garbe
<anselm@garbe.us>
Sat, 27 Jun 2009 16:38:18 +0000
(17:38 +0100)
committer
Anselm R Garbe
<anselm@garbe.us>
Sat, 27 Jun 2009 16:38:18 +0000
(17:38 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index 2588153537cea507777067be764070d12aec3673..096895c4617019542c64886f0d25a8c659e84f49 100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-804,13
+804,11
@@
focusmon(const Arg *arg) {
for(i = 0, m = mons; m; m = m->next, i++)
if(i == arg->ui) {
- if(m->stack)
- focus(m->stack);
- else {
- unfocus(selmon->stack);
- selmon = m;
- focus(NULL);
- }
+ if(m == selmon)
+ return;
+ unfocus(selmon->sel);
+ selmon = m;
+ focus(NULL);
drawbars();
break;
}