From b146bfe7964bad0864dbe0b706bac2d68a5d7e2b Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 7 Jul 2024 19:05:08 +0530 Subject: fix --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 261b8be..a88914c 100644 --- a/dwl.c +++ b/dwl.c @@ -1903,7 +1903,7 @@ motionnotify(uint32_t time, struct wlr_input_device *device, double dx, double d return; } else if (cursor_mode == CurResize) { resize(grabc, (struct wlr_box){.x = grabc->geom.x, .y = grabc->geom.y, - .width = ROUND(cursor->x) - grabc->geom.x, .height = ROUND(cursor->y) - grabc->geom.y}, 1, 1); + .width = (int)round(cursor->x) - grabc->geom.x, .height = (int)round(cursor->y) - grabc->geom.y}, 1, 1); return; } -- cgit v1.2.3