simplification
This commit is contained in:
parent
f806a17692
commit
5f55af40ae
2
dwm.1
2
dwm.1
|
@ -121,7 +121,7 @@ Quit dwm.
|
||||||
Move focused window while dragging. Tiled windows will be toggled to the floating state.
|
Move focused window while dragging. Tiled windows will be toggled to the floating state.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button2
|
.B Mod1\-Button2
|
||||||
Zooms/cycles focused window to/from master area. If it is floating (but not fixed) it will be toggled to the tiled state instead.
|
Toggles focused window between floating and tiled state.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button3
|
.B Mod1\-Button3
|
||||||
Resize focused window while dragging. Tiled windows will be toggled to the floating state.
|
Resize focused window while dragging. Tiled windows will be toggled to the floating state.
|
||||||
|
|
4
dwm.c
4
dwm.c
|
@ -342,10 +342,8 @@ buttonpress(XEvent *e) {
|
||||||
restack();
|
restack();
|
||||||
movemouse(c);
|
movemouse(c);
|
||||||
}
|
}
|
||||||
else if(ev->button == Button2) {
|
else if(ev->button == Button2)
|
||||||
if(lt->arrange && c->isfloating)
|
|
||||||
togglefloating(NULL);
|
togglefloating(NULL);
|
||||||
}
|
|
||||||
else if(ev->button == Button3 && !c->isfixed) {
|
else if(ev->button == Button3 && !c->isfixed) {
|
||||||
restack();
|
restack();
|
||||||
resizemouse(c);
|
resizemouse(c);
|
||||||
|
|
Loading…
Reference in New Issue