aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-16 08:05:30 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-16 08:05:30 +0200
commite8792d95a12c85f9e660e192cd2c6260a01a3c5e (patch)
tree30214a2c64f166ecec7b61c742a19d0246f6f1b9
parentfeec92df8449f14836b8681f4e56f2afeea4faf6 (diff)
downloaddwm-e8792d95a12c85f9e660e192cd2c6260a01a3c5e.tar
dwm-e8792d95a12c85f9e660e192cd2c6260a01a3c5e.tar.gz
dwm-e8792d95a12c85f9e660e192cd2c6260a01a3c5e.tar.bz2
applied Jukka's patch
-rw-r--r--tile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tile.c b/tile.c
index e1c68f8..386832d 100644
--- a/tile.c
+++ b/tile.c
@@ -16,7 +16,9 @@ addtomwfact(const char *arg) {
return;
/* arg handling, manipulate mwfact */
- if(arg && (1 == sscanf(arg, "%lf", &delta))) {
+ if(arg == NULL)
+ mwfact = MWFACT;
+ else if(1 == sscanf(arg, "%lf", &delta)) {
if(delta + mwfact > 0.1 && delta + mwfact < 0.9)
mwfact += delta;
}