summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2010-07-23 16:23:57 +0200
committerMichael Cardell Widerkrantz <mc@hack.org>2010-07-23 16:23:57 +0200
commit8b7eccc50795ad9d6a261fca54fabf7a861b22b5 (patch)
treed76e4c286b923e3321dadc6b91d856487d198819 /mcwm.c
parent7653c6dae67a5fde6d6edd92d4a64b6fec4ffbf1 (diff)
downloadmcwm-8b7eccc50795ad9d6a261fca54fabf7a861b22b5.zip
We initially set size increments to 1, so check for that instead.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcwm.c b/mcwm.c
index f95a0a3..edfb206 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -1371,7 +1371,7 @@ void resizestep(struct client *client, char direction)
origwidth = width;
origheight = height;
- if (client->width_inc > 0)
+ if (client->width_inc > 1)
{
step_x = client->width_inc;
}
@@ -1380,7 +1380,7 @@ void resizestep(struct client *client, char direction)
step_x = MOVE_STEP;
}
- if (client->height_inc > 0)
+ if (client->height_inc > 1)
{
step_y = client->height_inc;
}