diff 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
line wrap: on
line diff
--- a/event.c	Thu Aug 03 11:38:26 2006 +0200
+++ b/event.c	Thu Aug 03 12:12:26 2006 +0200
@@ -105,7 +105,7 @@
 		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);