X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/19da197f58bc005ad379d751f28f0a17cea3d3b8..3e06edeb5df0aa95614cb0b11ba1931f01b6f337:/tag.c?ds=inline diff --git a/tag.c b/tag.c index 51407e3..a718ebd 100644 --- a/tag.c +++ b/tag.c @@ -269,6 +269,8 @@ tag(Arg *arg) sel->tags[i] = False; sel->tags[arg->i] = True; settitle(sel); + if(!isvisible(sel)) + arrange(NULL); } void @@ -291,6 +293,8 @@ toggletag(Arg *arg) if(i == ntags) sel->tags[arg->i] = True; settitle(sel); + if(!isvisible(sel)) + arrange(NULL); }