update to only support one scroll direction, sym void pointer

This commit is contained in:
hiqqup 2023-12-13 14:55:42 +01:00
parent c038104eee
commit ccfab6e26f

4
dwl.c
View File

@ -990,11 +990,7 @@ libinput_event_pointer_get_scroll_value(struct libinput_event_pointer* event, en
{
void *sym = dlsym(RTLD_NEXT, "libinput_event_pointer_get_scroll_value");
hooked_axis_t hooked = *(hooked_axis_t*)(&sym);
if (axis == LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL) {
return hooked(event, axis) * scroll_factor;
} else {
return hooked(event, axis) * scroll_factor;
}
}
void