@@ 1864,7 1864,10 @@ focusortogglematchingscratch(const Arg *arg)
}
} else {
// show
- c->tags = selmon->tagset[selmon->seltags];
+ if (c->mon == selmon)
+ c->tags = selmon->tagset[selmon->seltags];
+ else
+ setmon(c, selmon, 0);
// focus
focusclient(c, 1);
}
@@ 1909,7 1912,10 @@ focusortogglescratch(const Arg *arg)
}
} else {
// show
- c->tags = selmon->tagset[selmon->seltags];
+ if (c->mon == selmon)
+ c->tags = selmon->tagset[selmon->seltags];
+ else
+ setmon(c, selmon, 0);
focusclient(c, 1);
}
arrange(selmon);