applied sanders patch

This commit is contained in:
Anselm R. Garbe 2006-09-01 10:32:50 +02:00
parent 924a088812
commit 1836b6740d
2 changed files with 20 additions and 11 deletions

18
dwm.1
View File

@ -47,16 +47,22 @@ and
.B floating .B floating
mode. mode.
.TP .TP
.B Button2
click on a tag label adds/removes that
.B tag
to/from the focused
.B window.
.TP
.B Button3 .B Button3
click on a tag label adds/removes all windows with that click on a tag label adds/removes all windows with that
.B tag .B tag
to/from the view. 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 .SS Keyboard commands
.TP .TP
.B Mod1-Shift-Return .B Mod1-Shift-Return

View File

@ -111,12 +111,15 @@ buttonpress(XEvent *e)
if(ev->x < x) { if(ev->x < x) {
switch(ev->button) { switch(ev->button) {
case Button1: case Button1:
if(ev->state & MODKEY)
tag(&a);
else
view(&a); view(&a);
break; break;
case Button2:
toggletag(&a);
break;
case Button3: case Button3:
if(ev->state & MODKEY)
toggletag(&a);
else
toggleview(&a); toggleview(&a);
break; break;
} }