applied Gottox patch to simplify the resizing of col, instead of resizing the current area, it only resizes the master area in the future (seems more predictable)
This commit is contained in:
parent
8e6eb52196
commit
2cce4b95cd
|
@ -1,5 +1,5 @@
|
||||||
# dwm version
|
# dwm version
|
||||||
VERSION = 2.0
|
VERSION = 2.1
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
|
4
dwm.1
4
dwm.1
|
@ -63,10 +63,10 @@ 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-g
|
.B Mod1-g
|
||||||
Grow current area (tiling mode only).
|
Grow master area (tiling mode only).
|
||||||
.TP
|
.TP
|
||||||
.B Mod1-s
|
.B Mod1-s
|
||||||
Shrink current area (tiling mode only).
|
Shrink master area (tiling mode only).
|
||||||
.TP
|
.TP
|
||||||
.B Mod1-Shift-[1..n]
|
.B Mod1-Shift-[1..n]
|
||||||
Apply
|
Apply
|
||||||
|
|
19
view.c
19
view.c
|
@ -196,24 +196,9 @@ isvisible(Client *c) {
|
||||||
|
|
||||||
void
|
void
|
||||||
resizecol(Arg *arg) {
|
resizecol(Arg *arg) {
|
||||||
unsigned int n;
|
if(master + arg->i > 950 || master + arg->i < 50)
|
||||||
Client *c;
|
|
||||||
|
|
||||||
for(n = 0, c = clients; c; c = c->next)
|
|
||||||
if(isvisible(c) && !c->isfloat)
|
|
||||||
n++;
|
|
||||||
if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
|
|
||||||
return;
|
return;
|
||||||
if(sel == getnext(clients)) {
|
master += arg->i;
|
||||||
if(master + arg->i > 950 || master + arg->i < 50)
|
|
||||||
return;
|
|
||||||
master += arg->i;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if(master - arg->i > 950 || master - arg->i < 50)
|
|
||||||
return;
|
|
||||||
master -= arg->i;
|
|
||||||
}
|
|
||||||
arrange();
|
arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue