JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removed TLast tag enum, now tags is simple defined as char *[] array, the rest is...
[dwm.git] / event.c
diff --git a/event.c b/event.c
index 0c159c7..88e1b10 100644 (file)
--- a/event.c
+++ b/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);