removed TLast tag enum, now tags is simple defined as char *[] array, the rest is calculated correctly, rules take an int array for the tags
This commit is contained in:
parent
666b4563a0
commit
b35575574b
8 changed files with 66 additions and 71 deletions
4
draw.c
4
draw.c
|
@ -114,7 +114,7 @@ drawstatus()
|
|||
drawtext(NULL, !istile, False);
|
||||
|
||||
dc.w = 0;
|
||||
for(i = 0; i < TLast; i++) {
|
||||
for(i = 0; i < ntags; i++) {
|
||||
dc.x += dc.w;
|
||||
dc.w = textw(tags[i]);
|
||||
if(istile)
|
||||
|
@ -153,7 +153,7 @@ drawtitle(Client *c)
|
|||
dc.x = dc.y = 0;
|
||||
|
||||
dc.w = 0;
|
||||
for(i = 0; i < TLast; i++) {
|
||||
for(i = 0; i < ntags; i++) {
|
||||
if(c->tags[i]) {
|
||||
dc.x += dc.w;
|
||||
dc.w = textw(tags[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue