made bar based monitor switching working
Anselm R Garbe anselm@garbe.us
Wed, 24 Jun 2009 19:51:41 +0100
1 files changed,
4 insertions(+),
6 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -400,12 +400,9 @@ /* focus monitor if necessary */
for(m = mons; m; m = m->next) if(ev->window == m->barwin) { if(m != selmon) { - if(selmon->stack) - focus(selmon->stack); - else { - selmon = m; - focus(NULL); - } + unfocus(selmon->stack); + selmon = m; + focus(NULL); } break; }@@ -1608,6 +1605,7 @@ if(!c)
return; grabbuttons(c, False); XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); + XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); } void