diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-01 10:32:50 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-01 10:32:50 +0200 |
commit | 1836b6740d7fc1a2e7fa0343aa7de657592ebfeb (patch) | |
tree | fe099e416526ba3d664ed47a298be890fa837d77 | |
parent | 924a0888126bd8ff12312c6e3e6a33003f271b2a (diff) | |
download | dwm-1836b6740d7fc1a2e7fa0343aa7de657592ebfeb.tar.gz |
applied sanders patch
-rw-r--r-- | dwm.1 | 18 | ||||
-rw-r--r-- | event.c | 13 |
2 files changed, 20 insertions, 11 deletions
diff --git a/dwm.1 b/dwm.1 index 2758bbf..31ebad0 100644 --- a/dwm.1 +++ b/dwm.1 @@ -47,16 +47,22 @@ and .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 --git a/event.c b/event.c index e97abad..a719bf2 100644 --- a/event.c +++ b/event.c @@ -111,13 +111,16 @@ buttonpress(XEvent *e) 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; |