Re: [dwm] duplicated check in client.c

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon, 13 Aug 2007 18:21:17 +0200

On Sun, Aug 12, 2007 at 10:44:38PM +0200, y i y u s wrote:
> BTW: In the file client.c in the resize function there's a check to
> return if w <= 0 || h <= 0 (lines 241 and 242), but after the
> sizehints if the check is done again (lines 278 and 279). Couldn't the
> first check be removed?

Well, I checked all cases and you are right, the first check is
redundant if (w - c->basew) > 0 is added to the first condition
after if(sizehints).

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Mon Aug 13 2007 - 18:21:17 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:49:19 UTC