[client] wayland: reject horizontal scroll events

Currently, we handle horizontal scroll events as if they are vertical scrolls.
This is not correct and we should instead reject them.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-07-31 14:57:56 +10:00
1 parent 86b50cc8ab
commit 6b6b3b724a
1 file changed
+3
+3
View File
@@ -85,6 +85,9 @@ static void pointerLeaveHandler(void * data, struct wl_pointer * pointer,
static void pointerAxisHandler(void * data, struct wl_pointer * pointer,
uint32_t serial, uint32_t axis, wl_fixed_t value)
{
if (axis != WL_POINTER_AXIS_VERTICAL_SCROLL)
return;
int button = value > 0 ?
5 /* SPICE_MOUSE_BUTTON_DOWN */ :
4 /* SPICE_MOUSE_BUTTON_UP */;