all repos — dwm @ e8aafb8e918967ac316faf469151f97379d0e672

my dwm build

made bar based monitor switching working
Anselm R Garbe anselm@garbe.us
Wed, 24 Jun 2009 19:51:41 +0100
commit

e8aafb8e918967ac316faf469151f97379d0e672

parent

18b1312449531c7b77403aafb71611e9e48500ec

1 files changed, 4 insertions(+), 6 deletions(-)

jump to
M dwm.cdwm.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