Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
still something wrong with reorder()
[dwm.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
512f355
..
a2e1c89
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-106,6
+106,8
@@
settags(Client *c)
if(!matched)
for(i = 0; i < ntags; i++)
c->tags[i] = seltag[i];
if(!matched)
for(i = 0; i < ntags; i++)
c->tags[i] = seltag[i];
+ for(i = 0; i < ntags && !c->tags[i]; i++);
+ c->weight = i;
}
void
}
void
@@
-122,6
+124,8
@@
tag(Arg *arg)
settitle(sel);
if(!isvisible(sel))
arrange(NULL);
settitle(sel);
if(!isvisible(sel))
arrange(NULL);
+ else
+ drawstatus();
}
void
}
void
@@
-139,4
+143,6
@@
toggletag(Arg *arg)
settitle(sel);
if(!isvisible(sel))
arrange(NULL);
settitle(sel);
if(!isvisible(sel))
arrange(NULL);
+ else
+ drawstatus();
}
}