opt: not apply tagmon action in some case

This commit is contained in:
DreamMaoMao 2025-07-07 23:25:05 +08:00
parent 2f713d3b27
commit 81b3aca9d8

View file

@ -5702,7 +5702,7 @@ void tagmon(const Arg *arg) {
m = dirtomon(arg->i); m = dirtomon(arg->i);
if (!m) if (!m || !m->wlr_output->enabled || m == c->mon)
return; return;
unsigned int newtags = arg->ui ? c->tags : 0; unsigned int newtags = arg->ui ? c->tags : 0;