Re: [dwm] setmwfact bug

From: Chris Webb <chris_AT_arachsys.com>
Date: Mon, 1 Oct 2007 19:21:15 +0100

Szabolcs Nagy <nszabolcs_AT_gmail.com> writes:

> there's a typo in in dwm.c in setmwfact():
>
> ...
> else if(1 == sscanf(arg, "%lf", &delta)) {
> if(arg[0] == '+' || arg[0] == '-')
> mwfact += delta;
> else
> mwfact = delta; // should be -=
> ...
> }

I don't think it should be. The current behaviour is that
setmwfact("+0.1") adds 0.1 to mwfact, setmwfact("-0.1") subtracts 0.1
from mwfact, and setmwfact("0.1") sets mwfact equal to 0.1. Your =- would
make setmwfact("0.1") equivalent to setmwfact("-0.1").

Cheers,

hrus.
Received on Mon Oct 01 2007 - 20:21:18 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:56:30 UTC