X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6..99b126d0afe461960d001385c9ee13295c8ed543:/event.c?ds=sidebyside 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);