applied sanders patch 1836b674
Anselm R. Garbe · 2006-09-01 10:32 2 file(s) · +20 −11
dwm.1 +12 −6
47 47
.B floating
48 48
mode.
49 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 50
.B Button3
57 51
click on a tag label adds/removes all windows with that
58 52
.B tag
59 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 66
.SS Keyboard commands
61 67
.TP
62 68
.B Mod1-Shift-Return
event.c +8 −5
111 111
			if(ev->x < x) {
112 112
				switch(ev->button) {
113 113
				case Button1:
114 -
					view(&a);
115 -
					break;
116 -
				case Button2:
117 -
					toggletag(&a);
114 +
					if(ev->state & MODKEY)
115 +
						tag(&a);
116 +
					else
117 +
						view(&a);
118 118
					break;
119 119
				case Button3:
120 -
					toggleview(&a);
120 +
					if(ev->state & MODKEY)
121 +
						toggletag(&a);
122 +
					else
123 +
						toggleview(&a);
121 124
					break;
122 125
				}
123 126
				return;