prevents natural_scrolling configuring usb mouse

Now natural_scrolling only configures touch supported devices like a laptop touchpad.
Leaving the usb mouse unaffected.
This commit is contained in:
Dario Tabares 2022-08-19 22:00:38 +00:00 committed by GitHub
parent 174919ec53
commit 639716dd19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
dwl.c
View File

@ -1004,11 +1004,10 @@ createpointer(struct wlr_input_device *device)
libinput_device_config_tap_set_enabled(libinput_device, tap_to_click);
libinput_device_config_tap_set_drag_enabled(libinput_device, tap_and_drag);
libinput_device_config_tap_set_drag_lock_enabled(libinput_device, drag_lock);
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_scroll_has_natural_scroll(libinput_device))
libinput_device_config_scroll_set_natural_scroll_enabled(libinput_device, natural_scrolling);
if (libinput_device_config_dwt_is_available(libinput_device))
libinput_device_config_dwt_set_enabled(libinput_device, disable_while_typing);