commit 8ec0317610cb246065e00d0cde8ec241b717ae02
parent 01aec86acbfdd682e6e40359fe6fff513121aa39
Author: mrgrouse <bdmfegys@duck.com>
Date: Sun, 10 Aug 2025 20:29:52 -0400
birdwm.c: fix compile errors caused by calling abs() on unsigned int (I think).
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/birdwm.c b/birdwm.c
@@ -1475,11 +1475,11 @@ movemouse(const Arg *arg)
ny = ocy + (ev.xmotion.y - y);
if (abs(selmon->wx - nx) < snap)
nx = selmon->wx;
- else if (abs((selmon->wx + selmon->ww) - (nx + WIDTH(c))) < snap)
+ else if ((selmon->wx + selmon->ww) - (nx + WIDTH(c)) < snap)
nx = selmon->wx + selmon->ww - WIDTH(c);
if (abs(selmon->wy - ny) < snap)
ny = selmon->wy;
- else if (abs((selmon->wy + selmon->wh) - (ny + HEIGHT(c))) < snap)
+ else if ((selmon->wy + selmon->wh) - (ny + HEIGHT(c)) < snap)
ny = selmon->wy + selmon->wh - HEIGHT(c);
if (!c->isfloating && selmon->lt[selmon->sellt]->arrange
&& (abs(nx - c->x) > snap || abs(ny - c->y) > snap))