summaryrefslogtreecommitdiffhomepage
path: root/patch/dragcfact.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-03-31 09:07:00 +0200
committerbakkeby <[email protected]>2020-03-31 11:07:24 +0200
commit692affcff7593f718db827edf70a2b130725a1f3 (patch)
tree698c03f1e3f496c4110dc156168e1b7d22b89add /patch/dragcfact.c
parenta560b9cb53f3efc031e8d944231f53f4a9720203 (diff)
downloaddwm-flexipatch-692affcff7593f718db827edf70a2b130725a1f3.tar.gz
dwm-flexipatch-692affcff7593f718db827edf70a2b130725a1f3.zip
dragcfact and dragmfact improvements
Diffstat (limited to 'patch/dragcfact.c')
-rw-r--r--patch/dragcfact.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/patch/dragcfact.c b/patch/dragcfact.c
index 98e2e31..9d20a2b 100644
--- a/patch/dragcfact.c
+++ b/patch/dragcfact.c
@@ -57,7 +57,8 @@ dragcfact(const Arg *arg)
fact = (float) -4.0 * dist_y / c->mon->wh;
}
- setcfact(&((Arg) { .f = fact }));
+ if (fact)
+ setcfact(&((Arg) { .f = fact }));
prev_x = ev.xmotion.x;
prev_y = ev.xmotion.y;