X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=tag.c;h=b5bebea241478dfee1cb17216e10678a8a3e0486;hb=fe3dfbbe90f813294bb69e41f996a000f63c1560;hp=c4d3b345b27b80f5dcb8bd7c66d3be2104c6229d;hpb=2ffdc1936cf13af5df0cc6d9415961dbe13b9cf8;p=dwm.git diff --git a/tag.c b/tag.c index c4d3b34..b5bebea 100644 --- a/tag.c +++ b/tag.c @@ -37,11 +37,15 @@ void (*arrange)(Arg *) = DEFMODE; void appendtag(Arg *arg) { - if(!sel) + Client *c = sel; + + if(!c) return; - sel->tags[arg->i] = True; + c->tags[arg->i] = True; arrange(NULL); + focus(c); + restack(); } void