# HG changeset patch # User Anselm R. Garbe # Date 1157099570 -7200 # Node ID 9c703e528e5843cbf7bc03dba08a367ac0f59d0d # Parent cb8a231610c793b3d2bda9abbb666d61a0c828a3 applied sanders patch diff -r cb8a231610c7 -r 9c703e528e58 dwm.1 --- a/dwm.1 Thu Aug 31 18:08:28 2006 +0200 +++ b/dwm.1 Fri Sep 01 10:32:50 2006 +0200 @@ -47,16 +47,22 @@ .B floating mode. .TP -.B Button2 -click on a tag label adds/removes that -.B tag -to/from the focused -.B window. -.TP .B Button3 click on a tag label adds/removes all windows with that .B tag to/from the view. +.TP +.B Mod1-Button1 +click on a tag label applies that +.B tag +to the focused +.BR window . +.TP +.B Mod1-Button3 +click on a tag label adds/removes that +.B tag +to/from the focused +.BR window . .SS Keyboard commands .TP .B Mod1-Shift-Return diff -r cb8a231610c7 -r 9c703e528e58 event.c --- a/event.c Thu Aug 31 18:08:28 2006 +0200 +++ b/event.c Fri Sep 01 10:32:50 2006 +0200 @@ -111,13 +111,16 @@ if(ev->x < x) { switch(ev->button) { case Button1: - view(&a); - break; - case Button2: - toggletag(&a); + if(ev->state & MODKEY) + tag(&a); + else + view(&a); break; case Button3: - toggleview(&a); + if(ev->state & MODKEY) + toggletag(&a); + else + toggleview(&a); break; } return;