|
|
@ -820,15 +820,19 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
enternotify(XEvent *e) {
|
|
|
|
enternotify(XEvent *e) {
|
|
|
|
|
|
|
|
Client *c;
|
|
|
|
Monitor *m;
|
|
|
|
Monitor *m;
|
|
|
|
XCrossingEvent *ev = &e->xcrossing;
|
|
|
|
XCrossingEvent *ev = &e->xcrossing;
|
|
|
|
|
|
|
|
|
|
|
|
if((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root)
|
|
|
|
if((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
c = wintoclient(ev->window);
|
|
|
|
if((m = wintomon(ev->window)) && m != selmon) {
|
|
|
|
if((m = wintomon(ev->window)) && m != selmon) {
|
|
|
|
unfocus(selmon->sel, True);
|
|
|
|
unfocus(selmon->sel, True);
|
|
|
|
selmon = m;
|
|
|
|
selmon = m;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if(c == selmon->sel || c == NULL)
|
|
|
|
|
|
|
|
return;
|
|
|
|
focus((wintoclient(ev->window)));
|
|
|
|
focus((wintoclient(ev->window)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|