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
2
event.c
2
event.c
|
@ -105,7 +105,7 @@ buttonpress(XEvent *e)
|
|||
switch(ev->button) {
|
||||
default:
|
||||
x = 0;
|
||||
for(a.i = 0; a.i < TLast; a.i++) {
|
||||
for(a.i = 0; a.i < ntags; a.i++) {
|
||||
x += textw(tags[a.i]);
|
||||
if(ev->x < x) {
|
||||
view(&a);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue