fixed focusmon brokeness
This commit is contained in:
parent
b9dee2c6f1
commit
64674c395b
12
dwm.c
12
dwm.c
@ -804,13 +804,11 @@ focusmon(const Arg *arg) {
|
|||||||
|
|
||||||
for(i = 0, m = mons; m; m = m->next, i++)
|
for(i = 0, m = mons; m; m = m->next, i++)
|
||||||
if(i == arg->ui) {
|
if(i == arg->ui) {
|
||||||
if(m->stack)
|
if(m == selmon)
|
||||||
focus(m->stack);
|
return;
|
||||||
else {
|
unfocus(selmon->sel);
|
||||||
unfocus(selmon->stack);
|
selmon = m;
|
||||||
selmon = m;
|
focus(NULL);
|
||||||
focus(NULL);
|
|
||||||
}
|
|
||||||
drawbars();
|
drawbars();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user