aboutsummaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/view.c b/view.c
index b4de573..793151d 100644
--- a/view.c
+++ b/view.c
@@ -192,9 +192,10 @@ focusprev(Arg *arg) {
void
incnmaster(Arg *arg) {
- if(nmaster + arg->i < 1)
+ if(nmaster + arg->i < 1 || (wah / (nmaster + arg->i) < bh))
return;
nmaster += arg->i;
+
arrange();
}