fix overlay alttab
@@ -695,7 +695,12 @@ clientmessage(XEvent *e)
setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
|| (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && (!c->isfullscreen || c->isfakefullscreen))));
} else if (cme->message_type == netatom[NetActiveWindow]) {
- if (c == selmon->overlay) {
+ if (c == c->mon->overlay) {
+ if (c->mon != selmon) {
+ unfocus(selmon->sel, 0);
+ selmon = c->mon;
+ focus(NULL);
+ }
showoverlay();
} else {
if (HIDDEN(c))
