comparison event.c @ 178:e848966a1ac6

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
author arg@10ksloc.org
date Thu, 03 Aug 2006 12:12:26 +0200
parents 21071ae1fe68
children 97960220eb77
comparison
equal deleted inserted replaced
177:e890cee887d1 178:e848966a1ac6
103 103
104 if(barwin == ev->window) { 104 if(barwin == ev->window) {
105 switch(ev->button) { 105 switch(ev->button) {
106 default: 106 default:
107 x = 0; 107 x = 0;
108 for(a.i = 0; a.i < TLast; a.i++) { 108 for(a.i = 0; a.i < ntags; a.i++) {
109 x += textw(tags[a.i]); 109 x += textw(tags[a.i]);
110 if(ev->x < x) { 110 if(ev->x < x) {
111 view(&a); 111 view(&a);
112 break; 112 break;
113 } 113 }