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 | reorder was misssing in Ross version of viewall (diff) | |
| download | dwm-1836b6740d7fc1a2e7fa0343aa7de657592ebfeb.tar.gz dwm-1836b6740d7fc1a2e7fa0343aa7de657592ebfeb.zip | |
applied sanders patch
| -rw-r--r-- | dwm.1 | 18 | ||||
| -rw-r--r-- | event.c | 13 |
2 files changed, 20 insertions, 11 deletions
| @@ -47,16 +47,22 @@ and | |||
| 47 | .B floating | 47 | .B floating |
| 48 | mode. | 48 | mode. |
| 49 | .TP | 49 | .TP |
| 50 | .B Button2 | ||
| 51 | click on a tag label adds/removes that | ||
| 52 | .B tag | ||
| 53 | to/from the focused | ||
| 54 | .B window. | ||
| 55 | .TP | ||
| 56 | .B Button3 | 50 | .B Button3 |
| 57 | click on a tag label adds/removes all windows with that | 51 | click on a tag label adds/removes all windows with that |
| 58 | .B tag | 52 | .B tag |
| 59 | to/from the view. | 53 | to/from the view. |
| 54 | .TP | ||
| 55 | .B Mod1-Button1 | ||
| 56 | click on a tag label applies that | ||
| 57 | .B tag | ||
| 58 | to the focused | ||
| 59 | .BR window . | ||
| 60 | .TP | ||
| 61 | .B Mod1-Button3 | ||
| 62 | click on a tag label adds/removes that | ||
| 63 | .B tag | ||
| 64 | to/from the focused | ||
| 65 | .BR window . | ||
| 60 | .SS Keyboard commands | 66 | .SS Keyboard commands |
| 61 | .TP | 67 | .TP |
| 62 | .B Mod1-Shift-Return | 68 | .B Mod1-Shift-Return |
| @@ -111,13 +111,16 @@ buttonpress(XEvent *e) | |||
| 111 | if(ev->x < x) { | 111 | if(ev->x < x) { |
| 112 | switch(ev->button) { | 112 | switch(ev->button) { |
| 113 | case Button1: | 113 | case Button1: |
| 114 | view(&a); | 114 | if(ev->state & MODKEY) |
| 115 | break; | 115 | tag(&a); |
| 116 | case Button2: | 116 | else |
| 117 | toggletag(&a); | 117 | view(&a); |
| 118 | break; | 118 | break; |
| 119 | case Button3: | 119 | case Button3: |
| 120 | toggleview(&a); | 120 | if(ev->state & MODKEY) |
| 121 | toggletag(&a); | ||
| 122 | else | ||
| 123 | toggleview(&a); | ||
| 121 | break; | 124 | break; |
| 122 | } | 125 | } |
| 123 | return; | 126 | return; |
