dragcfact and dragmfact improvements

This commit is contained in:
bakkeby
2020-03-31 09:07:00 +02:00
parent a560b9cb53
commit 692affcff7
3 changed files with 15 additions and 12 deletions

View File

@@ -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;