summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwm.118
-rw-r--r--event.c13
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
47.B floating 47.B floating
48mode. 48mode.
49.TP 49.TP
50.B Button2
51click on a tag label adds/removes that
52.B tag
53to/from the focused
54.B window.
55.TP
56.B Button3 50.B Button3
57click on a tag label adds/removes all windows with that 51click on a tag label adds/removes all windows with that
58.B tag 52.B tag
59to/from the view. 53to/from the view.
54.TP
55.B Mod1-Button1
56click on a tag label applies that
57.B tag
58to the focused
59.BR window .
60.TP
61.B Mod1-Button3
62click on a tag label adds/removes that
63.B tag
64to/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
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)
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;