diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-01-05 15:16:39 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-05 15:16:39 +0100 |
commit | d939f301fa5ee472f2b089496b5e873ec155fa8e (patch) | |
tree | 909fe0f9bcfd94a2870832de08c2e802a153528c | |
parent | 8c4623da80af2e25e3f0d15f56598624f4f37d5d (diff) | |
download | dwm-d939f301fa5ee472f2b089496b5e873ec155fa8e.tar dwm-d939f301fa5ee472f2b089496b5e873ec155fa8e.tar.gz dwm-d939f301fa5ee472f2b089496b5e873ec155fa8e.tar.bz2 |
adding some prevention that master clients get smaller than bh
-rw-r--r-- | view.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); } |