aboutsummaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-03 12:12:26 +0200
committerarg@10ksloc.org <unknown>2006-08-03 12:12:26 +0200
commitb35575574be53a1b3be42d7037d2f432a19a3890 (patch)
tree6be2344c68ec6590fa816bbd578e0f36fe21c0b8 /event.c
parent666b4563a0064dd7aa27159813124837d306f81c (diff)
downloaddwm-b35575574be53a1b3be42d7037d2f432a19a3890.tar.gz
dwm-b35575574be53a1b3be42d7037d2f432a19a3890.tar.bz2
dwm-b35575574be53a1b3be42d7037d2f432a19a3890.zip
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
Diffstat (limited to 'event.c')
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index 0c159c7..88e1b10 100644
--- 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);