fallback: replace fallback_dispatch->wheel with an anonymous struct
authorJoseExposito <jose.exposito89@gmail.com>
Thu, 11 Mar 2021 07:30:45 +0000 (08:30 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 17 Mar 2021 03:23:56 +0000 (03:23 +0000)
commit0f79fe66779075e6bda85248e38ae61810b76241
treebcff10f88fde26e87bea4722ddcc5ef1f05eeaa4
parent06697b5e85e54965952bfd8efac67c8bde3ff4bc
fallback: replace fallback_dispatch->wheel with an anonymous struct

The current fallback_dispatch wheel struct, a device_coords, doesn't allow to
save extra information.
The new anonymous struct will allow to add a is_inhibited field to disable mouse
scroll while the middle button is pressed and, potentially, any required extra
state in the future.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
src/evdev-fallback.c
src/evdev-fallback.h