X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=88e1b10853274828ac93c7f6dc062bc54a37faeb;hp=0c159c788119e7e9bb376bc1c9bb33fe07ebfdff;hb=b35575574be53a1b3be42d7037d2f432a19a3890;hpb=666b4563a0064dd7aa27159813124837d306f81c 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);