mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 02:04:14 +00:00
remove redundant sym variable
This commit is contained in:
parent
ccfab6e26f
commit
542d67593c
3
dwl.c
3
dwl.c
@ -988,8 +988,7 @@ createnotify(struct wl_listener *listener, void *data)
|
||||
double
|
||||
libinput_event_pointer_get_scroll_value(struct libinput_event_pointer* event, enum libinput_pointer_axis axis)
|
||||
{
|
||||
void *sym = dlsym(RTLD_NEXT, "libinput_event_pointer_get_scroll_value");
|
||||
hooked_axis_t hooked = *(hooked_axis_t*)(&sym);
|
||||
hooked_axis_t hooked = *(hooked_axis_t*) dlsym(RTLD_NEXT, "libinput_event_pointer_get_scroll_value");
|
||||
return hooked(event, axis) * scroll_factor;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user