From: Anselm R. Garbe Date: Thu, 5 Oct 2006 16:23:28 +0000 (+0200) Subject: small boundary check fix X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=1c1d09f3e9eb18175f48bcc212d07684577ba4a6 small boundary check fix --- diff --git a/view.c b/view.c index 1ca1027..70b0253 100644 --- a/view.c +++ b/view.c @@ -248,12 +248,12 @@ resizecol(Arg *arg) { return; if(sel == getnext(clients)) { - if(master + arg->i > 95 || master + arg->i < 5) + if(master + arg->i > 950 || master + arg->i < 50) return; master += arg->i; } else { - if(master - arg->i > 95 || master - arg->i < 5) + if(master - arg->i > 950 || master - arg->i < 50) return; master -= arg->i; }