Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
pplied Sanders appendtag patch
[dwm.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
c4d3b34
..
b5bebea
100644
(file)
--- 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