dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

naturalscrolltrackpad.patch (1077B)


      1 From 8b523453aefdc9d2920c8f9a52de009da251fbb0 Mon Sep 17 00:00:00 2001
      2 From: neuromagus <neuromagus@mail.ru>
      3 Date: Sun, 7 Jan 2024 05:11:24 +0300
      4 Subject: [PATCH] apply patch naturalscrolltrackpad
      5 
      6 ---
      7  dwl.c | 5 ++---
      8  1 file changed, 2 insertions(+), 3 deletions(-)
      9 
     10 diff --git a/dwl.c b/dwl.c
     11 index 4d19357..26f394b 100644
     12 --- a/dwl.c
     13 +++ b/dwl.c
     14 @@ -974,11 +974,10 @@ createpointer(struct wlr_pointer *pointer)
     15  			libinput_device_config_tap_set_drag_enabled(device, tap_and_drag);
     16  			libinput_device_config_tap_set_drag_lock_enabled(device, drag_lock);
     17  			libinput_device_config_tap_set_button_map(device, button_map);
     18 +			if (libinput_device_config_scroll_has_natural_scroll(device))
     19 +				libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
     20  		}
     21  
     22 -		if (libinput_device_config_scroll_has_natural_scroll(device))
     23 -			libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
     24 -
     25  		if (libinput_device_config_dwt_is_available(device))
     26  			libinput_device_config_dwt_set_enabled(device, disable_while_typing);
     27