projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
924a088
)
applied sanders patch
author
Anselm R. Garbe
<arg@10kloc.org>
Fri, 1 Sep 2006 08:32:50 +0000
(10:32 +0200)
committer
Anselm R. Garbe
<arg@10kloc.org>
Fri, 1 Sep 2006 08:32:50 +0000
(10:32 +0200)
dwm.1
patch
|
blob
|
history
event.c
patch
|
blob
|
history
diff --git
a/dwm.1
b/dwm.1
index 2758bbfedef9c93cbda83d623692e1922cc8dd4e..31ebad09be51d04192d2053c20aa297876431805 100644
(file)
--- 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 e97abadcb4ad61644d16db81a6aa0d30987a9351..a719bf21a9bae5a0f23b5271238fd96017ef4ec7 100644
(file)
--- 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;