# HG changeset patch # User Anselm R.Garbe # Date 1155572048 -7200 # Node ID b7865e6feef204df51de3c40d6f39515c3597f17 # Parent 5e5e5392c7cb12dd070fca7ab7ae140d1dd309dc applied sanders man page patch, removed button2 from bar click diff -r 5e5e5392c7cb -r b7865e6feef2 dwm.1 --- a/dwm.1 Mon Aug 14 17:50:48 2006 +0200 +++ b/dwm.1 Mon Aug 14 18:14:08 2006 +0200 @@ -36,13 +36,14 @@ .B Standard input is read and displayed in the status text area. .TP -.B Button[1,2] -click on a tag label focuses that -.B tag. +.B Button1 +click on a tag label views all windows with that +.BR tag . .TP .B Button3 -click on a tag label toggles that -.B tag. +click on a tag label adds/removes all windows with that +.B tag +to/from the view. .SS Keyboard commands .TP .B Mod1-Return @@ -54,19 +55,19 @@ .TP .B Mod1-j Focus next -.B window. +.BR window . .TP .B Mod1-k Focus previous -.B window. +.BR window . .TP .B Mod1-m Maximize current -.B window. +.BR window . .TP .B Mod1-[0..n] -Focus -.B nth tag. +View all windows with +.BR "tag n" . .TP .B Mod1-space Toggle between @@ -80,7 +81,7 @@ Apply .B nth tag to current -.B window. +.BR window . .TP .B Mod1-Shift-c Close focused @@ -92,17 +93,18 @@ .TP .B Mod1-Shift-Return Start -.B terminal. +.BR terminal . .TP .B Mod1-Control-[0..n] -Toggle -.B nth tag. +Add/remove all windows with +.B tag n +to/from the view. .TP .B Mod1-Control-Shift-[0..n] -Append +Add/remove .B nth tag -to current -.B window. +to/from current +.BR window . .SS Mouse commands .TP .B Mod1-Button1 @@ -127,12 +129,12 @@ code. This keeps it fast, secure and simple. .SH CAVEATS The status bar displays -.BR "broken pipe" +.B broken pipe when .B dwm has been started by .BR xdm (1), because it closes standard output before executing -.B dwm. +.BR dwm . .SH SEE ALSO .BR dmenu (1) diff -r 5e5e5392c7cb -r b7865e6feef2 event.c --- a/event.c Mon Aug 14 17:50:48 2006 +0200 +++ b/event.c Mon Aug 14 18:14:08 2006 +0200 @@ -109,10 +109,10 @@ for(a.i = 0; a.i < ntags; a.i++) { x += textw(tags[a.i]); if(ev->x < x) { - if(ev->button == Button3) + if(ev->button == Button1) + view(&a); + else if(ev->button == Button3) toggleview(&a); - else - view(&a); return; } }