From 72ccd4468145a350bf69df6797b6fc6303e31372 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 30 Jul 2021 07:02:13 -0400 Subject: [PATCH] [client] wayland: pass mouse wheel motion events to imgui --- client/displayservers/Wayland/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/displayservers/Wayland/input.c b/client/displayservers/Wayland/input.c index 7dd565a2..7048b4f1 100644 --- a/client/displayservers/Wayland/input.c +++ b/client/displayservers/Wayland/input.c @@ -93,6 +93,7 @@ static void pointerAxisHandler(void * data, struct wl_pointer * pointer, 4 /* SPICE_MOUSE_BUTTON_UP */; app_handleButtonPress(button); app_handleButtonRelease(button); + app_handleWheelMotion(wl_fixed_to_double(value) / 15.0); } static int mapWaylandToSpiceButton(uint32_t button)