mouse: use discrete axis event if available

This improves the scroll experience with certain devices
This commit is contained in:
Daniel Eklöf 2019-07-26 18:47:56 +02:00
parent bb3e33948f
commit e88cf4c8c8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 39 additions and 25 deletions

2
main.c
View file

@ -125,7 +125,7 @@ handle_global(void *data, struct wl_registry *registry,
else if (strcmp(interface, wl_seat_interface.name) == 0) {
term->wl.seat = wl_registry_bind(
term->wl.registry, name, &wl_seat_interface, 4);
term->wl.registry, name, &wl_seat_interface, 5);
wl_seat_add_listener(term->wl.seat, &seat_listener, term);
wl_display_roundtrip(term->wl.display);
}