adding some prevention that master clients get smaller than bh
d939f301
1 file(s) · +2 −1
| 192 | 192 | ||
| 193 | 193 | void |
|
| 194 | 194 | incnmaster(Arg *arg) { |
|
| 195 | - | if(nmaster + arg->i < 1) |
|
| 195 | + | if(nmaster + arg->i < 1 || (wah / (nmaster + arg->i) < bh)) |
|
| 196 | 196 | return; |
|
| 197 | 197 | nmaster += arg->i; |
|
| 198 | + | ||
| 198 | 199 | arrange(); |
|
| 199 | 200 | } |
|
| 200 | 201 |