fix: tagcrossmon not apply in current monitor

This commit is contained in:
DreamMaoMao 2026-01-29 09:42:54 +08:00
parent b7efd614cd
commit 2f25ff6692

View file

@ -1445,9 +1445,14 @@ int32_t viewcrossmon(const Arg *arg) {
}
int32_t tagcrossmon(const Arg *arg) {
if (!selmon->sel)
if (!selmon || !selmon->sel)
return 0;
if (regex_match(selmon->wlr_output->name, arg->v)) {
tag_client(arg, selmon->sel);
return 0;
}
tagmon(&(Arg){.ui = arg->ui, .i = UNDIR, .v = arg->v});
return 0;
}