dwm-meillo

changeset 288:b7865e6feef2

applied sanders man page patch, removed button2 from bar click
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 18:14:08 +0200
parents 5e5e5392c7cb
children 6562340b9ffc
files dwm.1 event.c
diffstat 2 files changed, 24 insertions(+), 22 deletions(-) [+]
line diff
     1.1 --- a/dwm.1	Mon Aug 14 17:50:48 2006 +0200
     1.2 +++ b/dwm.1	Mon Aug 14 18:14:08 2006 +0200
     1.3 @@ -36,13 +36,14 @@
     1.4  .B Standard input
     1.5  is read and displayed in the status text area.
     1.6  .TP
     1.7 -.B Button[1,2]
     1.8 -click on a tag label focuses that
     1.9 -.B tag.
    1.10 +.B Button1
    1.11 +click on a tag label views all windows with that
    1.12 +.BR tag .
    1.13  .TP
    1.14  .B Button3
    1.15 -click on a tag label toggles that
    1.16 -.B tag.
    1.17 +click on a tag label adds/removes all windows with that
    1.18 +.B tag
    1.19 +to/from the view.
    1.20  .SS Keyboard commands
    1.21  .TP
    1.22  .B Mod1-Return
    1.23 @@ -54,19 +55,19 @@
    1.24  .TP
    1.25  .B Mod1-j
    1.26  Focus next
    1.27 -.B window.
    1.28 +.BR window .
    1.29  .TP
    1.30  .B Mod1-k
    1.31  Focus previous
    1.32 -.B window.
    1.33 +.BR window .
    1.34  .TP
    1.35  .B Mod1-m
    1.36  Maximize current
    1.37 -.B window.
    1.38 +.BR window .
    1.39  .TP
    1.40  .B Mod1-[0..n]
    1.41 -Focus
    1.42 -.B nth tag.
    1.43 +View all windows with
    1.44 +.BR "tag n" .
    1.45  .TP
    1.46  .B Mod1-space
    1.47  Toggle between
    1.48 @@ -80,7 +81,7 @@
    1.49  Apply
    1.50  .B nth tag
    1.51  to current
    1.52 -.B window.
    1.53 +.BR window .
    1.54  .TP
    1.55  .B Mod1-Shift-c
    1.56  Close focused
    1.57 @@ -92,17 +93,18 @@
    1.58  .TP
    1.59  .B Mod1-Shift-Return
    1.60  Start
    1.61 -.B terminal.
    1.62 +.BR terminal .
    1.63  .TP
    1.64  .B Mod1-Control-[0..n]
    1.65 -Toggle
    1.66 -.B nth tag.
    1.67 +Add/remove all windows with
    1.68 +.B tag n
    1.69 +to/from the view.
    1.70  .TP
    1.71  .B Mod1-Control-Shift-[0..n]
    1.72 -Append
    1.73 +Add/remove
    1.74  .B nth tag
    1.75 -to current
    1.76 -.B window.
    1.77 +to/from current
    1.78 +.BR window .
    1.79  .SS Mouse commands
    1.80  .TP
    1.81  .B Mod1-Button1
    1.82 @@ -127,12 +129,12 @@
    1.83  code. This keeps it fast, secure and simple.
    1.84  .SH CAVEATS
    1.85  The status bar displays
    1.86 -.BR "broken pipe"
    1.87 +.B broken pipe
    1.88  when
    1.89  .B dwm
    1.90  has been started by
    1.91  .BR xdm (1),
    1.92  because it closes standard output before executing
    1.93 -.B dwm.
    1.94 +.BR dwm .
    1.95  .SH SEE ALSO
    1.96  .BR dmenu (1)
     2.1 --- a/event.c	Mon Aug 14 17:50:48 2006 +0200
     2.2 +++ b/event.c	Mon Aug 14 18:14:08 2006 +0200
     2.3 @@ -109,10 +109,10 @@
     2.4  		for(a.i = 0; a.i < ntags; a.i++) {
     2.5  			x += textw(tags[a.i]);
     2.6  			if(ev->x < x) {
     2.7 -				if(ev->button == Button3)
     2.8 +				if(ev->button == Button1)
     2.9 +					view(&a);
    2.10 +				else if(ev->button == Button3)
    2.11  					toggleview(&a);
    2.12 -				else
    2.13 -					view(&a);
    2.14  				return;
    2.15  			}
    2.16  		}