event.c
changeset 178 e848966a1ac6
parent 164 21071ae1fe68
child 195 97960220eb77
--- 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);