Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
78b050c
)
applied sanders man page patch, removed button2 from bar click
author
Anselm R.Garbe <
[email protected]
>
Mon, 14 Aug 2006 16:14:08 +0000
(18:14 +0200)
committer
Anselm R.Garbe <
[email protected]
>
Mon, 14 Aug 2006 16:14:08 +0000
(18:14 +0200)
dwm.1
diff
|
blob
|
history
event.c
diff
|
blob
|
history
diff --git
a/dwm.1
b/dwm.1
index
9f0705b
..
c653b99
100644
(file)
--- a/
dwm.1
+++ b/
dwm.1
@@
-36,13
+36,14
@@
prints version information to standard output, then exits.
.B Standard input
is read and displayed in the status text area.
.TP
.B Standard input
is read and displayed in the status text area.
.TP
-.B Button
[1,2]
-click on a tag label
focuses
that
-.B
tag
.
+.B Button
1
+click on a tag label
views all windows with
that
+.B
R tag
.
.TP
.B Button3
.TP
.B Button3
-click on a tag label toggles that
-.B tag.
+click on a tag label adds/removes all windows with that
+.B tag
+to/from the view.
.SS Keyboard commands
.TP
.B Mod1-Return
.SS Keyboard commands
.TP
.B Mod1-Return
@@
-54,19
+55,19
@@
column.
.TP
.B Mod1-j
Focus next
.TP
.B Mod1-j
Focus next
-.B
window
.
+.B
R window
.
.TP
.B Mod1-k
Focus previous
.TP
.B Mod1-k
Focus previous
-.B
window
.
+.B
R window
.
.TP
.B Mod1-m
Maximize current
.TP
.B Mod1-m
Maximize current
-.B
window
.
+.B
R window
.
.TP
.B Mod1-[0..n]
.TP
.B Mod1-[0..n]
-Focus
-.B
nth tag
.
+View all windows with
+.B
R "tag n"
.
.TP
.B Mod1-space
Toggle between
.TP
.B Mod1-space
Toggle between
@@
-80,7
+81,7
@@
mode (affects
Apply
.B nth tag
to current
Apply
.B nth tag
to current
-.B
window
.
+.B
R window
.
.TP
.B Mod1-Shift-c
Close focused
.TP
.B Mod1-Shift-c
Close focused
@@
-92,17
+93,18
@@
Quit
.TP
.B Mod1-Shift-Return
Start
.TP
.B Mod1-Shift-Return
Start
-.B
terminal
.
+.B
R terminal
.
.TP
.B Mod1-Control-[0..n]
.TP
.B Mod1-Control-[0..n]
-Toggle
-.B nth tag.
+Add/remove all windows with
+.B tag n
+to/from the view.
.TP
.B Mod1-Control-Shift-[0..n]
.TP
.B Mod1-Control-Shift-[0..n]
-A
ppend
+A
dd/remove
.B nth tag
.B nth tag
-to current
-.B
window
.
+to
/from
current
+.B
R window
.
.SS Mouse commands
.TP
.B Mod1-Button1
.SS Mouse commands
.TP
.B Mod1-Button1
@@
-127,12
+129,12
@@
is customized by creating a custom config.h and (re)compiling the source
code. This keeps it fast, secure and simple.
.SH CAVEATS
The status bar displays
code. This keeps it fast, secure and simple.
.SH CAVEATS
The status bar displays
-.B
R "broken pipe"
+.B
broken pipe
when
.B dwm
has been started by
.BR xdm (1),
because it closes standard output before executing
when
.B dwm
has been started by
.BR xdm (1),
because it closes standard output before executing
-.B
dwm
.
+.B
R dwm
.
.SH SEE ALSO
.BR dmenu (1)
.SH SEE ALSO
.BR dmenu (1)
diff --git
a/event.c
b/event.c
index
5c21fcb
..
187c65e
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-109,10
+109,10
@@
buttonpress(XEvent *e)
for(a.i = 0; a.i < ntags; a.i++) {
x += textw(tags[a.i]);
if(ev->x < x) {
for(a.i = 0; a.i < ntags; a.i++) {
x += textw(tags[a.i]);
if(ev->x < x) {
- if(ev->button == Button3)
- toggleview(&a);
- else
+ if(ev->button == Button1)
view(&a);
view(&a);
+ else if(ev->button == Button3)
+ toggleview(&a);
return;
}
}
return;
}
}