mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-08 08:21:00 -04:00
Now is possible change the pointer speed and change the accel profile
This commit is contained in:
parent
3c83e0cfb8
commit
92800d7866
2 changed files with 17 additions and 0 deletions
7
dwl.c
7
dwl.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue