aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorwill <william.calliari@gmail.com>2020-10-17 16:18:44 +0200
committerGuido Cella <guido@guidocella.xyz>2020-12-19 18:37:10 +0100
commitaa679c4f29fd386e0bb89dd95ec2093f9c998ba8 (patch)
treedb25042fe06067a57dadd49600b3769cc575ac04 /dwl.c
parent4f1e557d3d26ee8359750dce8f370d404513a1ca (diff)
Added support for natural scrolling
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 2907c5f..188639e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -974,8 +974,13 @@ createpointer(struct wlr_input_device *device)
{
struct libinput_device *libinput_device = (struct libinput_device*)
wlr_libinput_get_device_handle(device);
+
if (tap_to_click && libinput_device_config_tap_get_finger_count(libinput_device))
libinput_device_config_tap_set_enabled(libinput_device, LIBINPUT_CONFIG_TAP_ENABLED);
+
+ if (libinput_device_config_scroll_has_natural_scroll(libinput_device))
+ libinput_device_config_scroll_set_natural_scroll_enabled(libinput_device, natural_scrolling);
+
/* We don't do anything special with pointers. All of our pointer handling
* is proxied through wlr_cursor. On another compositor, you might take this
* opportunity to do libinput configuration on the device to set