X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=tag.c;h=a718ebd2cd55a76710b10dda71c3f00f8e7b81d4;hb=78b050c13c8ea660ed801c21bddd2957a2bc3f40;hp=51407e3e3712201a44c87ebd62281cd4e4a22d35;hpb=19da197f58bc005ad379d751f28f0a17cea3d3b8;p=dwm.git 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); }