Now is possible change the pointer speed and change the accel profile

This commit is contained in:
Sevz17 2021-04-04 22:31:13 -05:00
parent 3c83e0cfb8
commit 92800d7866
2 changed files with 17 additions and 0 deletions

7
dwl.c
View file

@ -949,6 +949,13 @@ createpointer(struct wlr_input_device *device)
if (libinput_device_config_scroll_has_natural_scroll(libinput_device))
libinput_device_config_scroll_set_natural_scroll_enabled(libinput_device, natural_scrolling);
if (libinput_device_config_accel_is_available(libinput_device) && pointer_speed)
libinput_device_config_accel_set_speed(libinput_device, pointer_speed);
#ifdef ACCEL_PROFILE
libinput_device_config_accel_set_profile(libinput_device, ACCEL_PROFILE);
#endif
}
/* We don't do anything special with pointers. All of our pointer handling