dwm-meillo
changeset 398:9c703e528e58
applied sanders patch
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 01 Sep 2006 10:32:50 +0200 |
parents | cb8a231610c7 |
children | 74739798b0b2 |
files | dwm.1 event.c |
diffstat | 2 files changed, 20 insertions(+), 11 deletions(-) [+] |
line diff
1.1 --- a/dwm.1 Thu Aug 31 18:08:28 2006 +0200 1.2 +++ b/dwm.1 Fri Sep 01 10:32:50 2006 +0200 1.3 @@ -47,16 +47,22 @@ 1.4 .B floating 1.5 mode. 1.6 .TP 1.7 -.B Button2 1.8 -click on a tag label adds/removes that 1.9 -.B tag 1.10 -to/from the focused 1.11 -.B window. 1.12 -.TP 1.13 .B Button3 1.14 click on a tag label adds/removes all windows with that 1.15 .B tag 1.16 to/from the view. 1.17 +.TP 1.18 +.B Mod1-Button1 1.19 +click on a tag label applies that 1.20 +.B tag 1.21 +to the focused 1.22 +.BR window . 1.23 +.TP 1.24 +.B Mod1-Button3 1.25 +click on a tag label adds/removes that 1.26 +.B tag 1.27 +to/from the focused 1.28 +.BR window . 1.29 .SS Keyboard commands 1.30 .TP 1.31 .B Mod1-Shift-Return
2.1 --- a/event.c Thu Aug 31 18:08:28 2006 +0200 2.2 +++ b/event.c Fri Sep 01 10:32:50 2006 +0200 2.3 @@ -111,13 +111,16 @@ 2.4 if(ev->x < x) { 2.5 switch(ev->button) { 2.6 case Button1: 2.7 - view(&a); 2.8 - break; 2.9 - case Button2: 2.10 - toggletag(&a); 2.11 + if(ev->state & MODKEY) 2.12 + tag(&a); 2.13 + else 2.14 + view(&a); 2.15 break; 2.16 case Button3: 2.17 - toggleview(&a); 2.18 + if(ev->state & MODKEY) 2.19 + toggletag(&a); 2.20 + else 2.21 + toggleview(&a); 2.22 break; 2.23 } 2.24 return;