mirror of git://git.suckless.org/dwm
Button3 click on mode label toggles stack position now
This commit is contained in:
parent
c8e57332d1
commit
d9c475d7f4
5
dwm.1
5
dwm.1
|
@ -40,7 +40,8 @@ click on a tag label to display all windows with that tag, click on the mode
|
||||||
label toggles between tiled and floating mode.
|
label toggles between tiled and floating mode.
|
||||||
.TP
|
.TP
|
||||||
.B Button3
|
.B Button3
|
||||||
click on a tag label adds/removes all windows with that tag to/from the view.
|
click on a tag label adds/removes all windows with that tag to/from the view,
|
||||||
|
click on the mode label toggles the stack position (tiled mode).
|
||||||
.TP
|
.TP
|
||||||
.B Mod1-Button1
|
.B Mod1-Button1
|
||||||
click on a tag label applies that tag to the focused window.
|
click on a tag label applies that tag to the focused window.
|
||||||
|
@ -63,7 +64,7 @@ Focus previous window.
|
||||||
Zooms/cycles current window to/from master area (tiling mode), toggles maximization current window (floating mode).
|
Zooms/cycles current window to/from master area (tiling mode), toggles maximization current window (floating mode).
|
||||||
.TP
|
.TP
|
||||||
.B Mod1-b
|
.B Mod1-b
|
||||||
Toggle stacking area position (tiling mode only).
|
Toggle stack position (tiling mode only).
|
||||||
.TP
|
.TP
|
||||||
.B Mod1-g
|
.B Mod1-g
|
||||||
Grow current area (tiling mode only).
|
Grow current area (tiling mode only).
|
||||||
|
|
2
event.c
2
event.c
|
@ -126,6 +126,8 @@ buttonpress(XEvent *e) {
|
||||||
if(ev->x < x + bmw) {
|
if(ev->x < x + bmw) {
|
||||||
if(ev->button == Button1)
|
if(ev->button == Button1)
|
||||||
togglemode(NULL);
|
togglemode(NULL);
|
||||||
|
else if(ev->button == Button3)
|
||||||
|
togglestackpos(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if((c = getclient(ev->window))) {
|
else if((c = getclient(ev->window))) {
|
||||||
|
|
Loading…
Reference in New Issue