mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[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:
parent
86b50cc8ab
commit
6b6b3b724a
@ -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 */;
|
||||
|
Loading…
Reference in New Issue
Block a user