implemented Button2 press on tags for toggletag on the focused client
Anselm R. Garbe arg@10kloc.org
Thu, 31 Aug 2006 17:49:04 +0200
M
event.c
→
event.c
@@ -109,10 +109,17 @@ x = 0;
for(a.i = 0; a.i < ntags; a.i++) { x += textw(tags[a.i]); if(ev->x < x) { - if(ev->button == Button1) + switch(ev->button) { + case Button1: view(&a); - else if(ev->button == Button3) + break; + case Button2: + toggletag(&a); + break; + case Button3: toggleview(&a); + break; + } return; } }