aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seatop_down.c
diff options
context:
space:
mode:
authorCarl Smedstad <carl.smedstad@protonmail.com>2022-12-30 08:50:14 +0100
committerSimon Ser <contact@emersion.fr>2023-01-03 21:50:56 +0100
commit9425ce2fba6dd643c240386901de370ac90cc337 (patch)
treeeece0cfb4e472de8809ea7a074336905c2767932 /sway/input/seatop_down.c
parentd8212243c99f3be828033a5cc76b258990aa565b (diff)
Replace math functions that promote float to double
Diffstat (limited to 'sway/input/seatop_down.c')
-rw-r--r--sway/input/seatop_down.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_down.c b/sway/input/seatop_down.c
index b40773d0..3f880ccf 100644
--- a/sway/input/seatop_down.c
+++ b/sway/input/seatop_down.c
@@ -28,7 +28,7 @@ static void handle_pointer_axis(struct sway_seat *seat,
wlr_seat_pointer_notify_axis(seat->wlr_seat, event->time_msec,
event->orientation, scroll_factor * event->delta,
- round(scroll_factor * event->delta_discrete), event->source);
+ roundf(scroll_factor * event->delta_discrete), event->source);
}
static void handle_button(struct sway_seat *seat, uint32_t time_msec,