[client] spice: filter out events that have < 2 axis

This prevents the mouse wheel from being treated as a cursor movement
This commit is contained in:
Geoffrey McRae 2021-01-08 08:42:19 +11:00
parent 2788394631
commit 6030d2f189

View File

@ -1305,6 +1305,10 @@ int eventFilter(void * userdata, SDL_Event * event)
}
}
/* filter out scroll wheel and other events */
if (count < 2)
break;
/* filter out duplicate events */
static Time prev_time = 0;
static double prev_axis[2] = {0};