mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-01 07:16:11 -04:00
opt: not apply tagmon when dirtomon is null
This commit is contained in:
parent
84c0a8f3d0
commit
2f713d3b27
1 changed files with 5 additions and 1 deletions
|
|
@ -5700,12 +5700,16 @@ void tagmon(const Arg *arg) {
|
||||||
if (!c)
|
if (!c)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
m = dirtomon(arg->i);
|
||||||
|
|
||||||
|
if (!m)
|
||||||
|
return;
|
||||||
|
|
||||||
unsigned int newtags = arg->ui ? c->tags : 0;
|
unsigned int newtags = arg->ui ? c->tags : 0;
|
||||||
unsigned int target;
|
unsigned int target;
|
||||||
if (c == selmon->sel) {
|
if (c == selmon->sel) {
|
||||||
selmon->sel = NULL;
|
selmon->sel = NULL;
|
||||||
}
|
}
|
||||||
m = dirtomon(arg->i);
|
|
||||||
|
|
||||||
setmon(c, m, newtags, true);
|
setmon(c, m, newtags, true);
|
||||||
client_update_oldmonname_record(c, m);
|
client_update_oldmonname_record(c, m);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue