From: Anselm R. Garbe Date: Fri, 5 Jan 2007 14:16:39 +0000 (+0100) Subject: adding some prevention that master clients get smaller than bh X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=d939f301fa5ee472f2b089496b5e873ec155fa8e adding some prevention that master clients get smaller than bh --- 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(); }