-#define XINULATOR /* debug, simulates dual head */
+//#define XINULATOR /* debug, simulates dual head */
/* See LICENSE file for copyright and license details.
*
* dynamic window manager is designed like any other X client as well. It is
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;
}
return;
grabbuttons(c, False);
XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
+ XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
}
void