dwm-meillo
diff event.c @ 394:1da9a6b94ca9
implemented Button2 press on tags for toggletag on the focused client
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Thu, 31 Aug 2006 17:49:04 +0200 |
parents | dca6aca09653 |
children | 9c703e528e58 |
line diff
1.1 --- a/event.c Thu Aug 31 08:48:04 2006 +0200 1.2 +++ b/event.c Thu Aug 31 17:49:04 2006 +0200 1.3 @@ -109,10 +109,17 @@ 1.4 for(a.i = 0; a.i < ntags; a.i++) { 1.5 x += textw(tags[a.i]); 1.6 if(ev->x < x) { 1.7 - if(ev->button == Button1) 1.8 + switch(ev->button) { 1.9 + case Button1: 1.10 view(&a); 1.11 - else if(ev->button == Button3) 1.12 + break; 1.13 + case Button2: 1.14 + toggletag(&a); 1.15 + break; 1.16 + case Button3: 1.17 toggleview(&a); 1.18 + break; 1.19 + } 1.20 return; 1.21 } 1.22 }