X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=event.c;h=9da7ac407a5ad0cc2d5f199fde7daee92979bf28;hb=349cadacf6c978f42ca582c57413895c1be52d66;hp=05b42f03e86654840a6cda46af059b3c210cd910;hpb=d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4;p=dwm.git diff --git a/event.c b/event.c index 05b42f0..9da7ac4 100644 --- a/event.c +++ b/event.c @@ -108,11 +108,8 @@ buttonpress(XEvent *e) for(a.i = 0; a.i < ntags; a.i++) { x += textw(tags[a.i]); if(ev->x < x) { - if(ev->button == Button3) { - tsel[a.i] = True; - arrange(NULL); - drawall(); - } + if(ev->button == Button3) + toggleview(&a); else view(&a); return;