fixed focusmon brokeness
Anselm R Garbe anselm@garbe.us
Sat, 27 Jun 2009 17:38:18 +0100
1 files changed,
5 insertions(+),
7 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -804,13 +804,11 @@ Monitor *m;
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; }