fix multi monitor focusing
@@ -840,6 +840,10 @@ clientmessage(XEvent *e)
for (i = 0; i < LENGTH(tags) && !((1 << i) & c->tags); i++);
if (i < LENGTH(tags)) {
const Arg a = {.ui = 1 << i};
+ if (selmon != c->mon) {
+ unfocus(selmon->sel, 0);
+ selmon = c->mon;
+ }
view(&a);
focus(c);
restack(selmon);
