From 639716dd19d788db70eee9509053dbcb1708a718 Mon Sep 17 00:00:00 2001 From: Dario Tabares <34433329+DarioTD@users.noreply.github.com> Date: Fri, 19 Aug 2022 22:00:38 +0000 Subject: [PATCH] prevents natural_scrolling configuring usb mouse Now natural_scrolling only configures touch supported devices like a laptop touchpad. Leaving the usb mouse unaffected. --- dwl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dwl.c b/dwl.c index cf7d307..4cc5a2b 100644 --- a/dwl.c +++ b/dwl.c @@ -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);