mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-05 07:15:49 -04:00
fix: tagcrossmon not apply in current monitor
This commit is contained in:
parent
b7efd614cd
commit
2f25ff6692
1 changed files with 6 additions and 1 deletions
|
|
@ -1445,9 +1445,14 @@ int32_t viewcrossmon(const Arg *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t tagcrossmon(const Arg *arg) {
|
int32_t tagcrossmon(const Arg *arg) {
|
||||||
if (!selmon->sel)
|
if (!selmon || !selmon->sel)
|
||||||
return 0;
|
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});
|
tagmon(&(Arg){.ui = arg->ui, .i = UNDIR, .v = arg->v});
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue