|
@ -153,8 +153,7 @@ incnmaster(Arg *arg) { |
|
|
if((arrange == dofloat) || (nmaster + arg->i < 1) || (wah / (nmaster + arg->i) < bh)) |
|
|
if((arrange == dofloat) || (nmaster + arg->i < 1) || (wah / (nmaster + arg->i) < bh)) |
|
|
return; |
|
|
return; |
|
|
nmaster += arg->i; |
|
|
nmaster += arg->i; |
|
|
snprintf(mtext, sizeof mtext, arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, nmaster); |
|
|
|
|
|
bmw = textw(mtext); |
|
|
|
|
|
|
|
|
updatemodetext(); |
|
|
if(sel) |
|
|
if(sel) |
|
|
arrange(); |
|
|
arrange(); |
|
|
else |
|
|
else |
|
@ -224,8 +223,7 @@ togglefloat(Arg *arg) { |
|
|
void |
|
|
void |
|
|
togglemode(Arg *arg) { |
|
|
togglemode(Arg *arg) { |
|
|
arrange = (arrange == dofloat) ? dotile : dofloat; |
|
|
arrange = (arrange == dofloat) ? dotile : dofloat; |
|
|
snprintf(mtext, sizeof mtext, arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, nmaster); |
|
|
|
|
|
bmw = textw(mtext); |
|
|
|
|
|
|
|
|
updatemodetext(); |
|
|
if(sel) |
|
|
if(sel) |
|
|
arrange(); |
|
|
arrange(); |
|
|
else |
|
|
else |
|
@ -243,6 +241,12 @@ toggleview(Arg *arg) { |
|
|
arrange(); |
|
|
arrange(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
|
updatemodetext() { |
|
|
|
|
|
snprintf(mtext, sizeof mtext, arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, nmaster); |
|
|
|
|
|
bmw = textw(mtext); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void |
|
|
void |
|
|
view(Arg *arg) { |
|
|
view(Arg *arg) { |
|
|
unsigned int i; |
|
|
unsigned int i; |
|
|