diff --git a/dwl.c b/dwl.c index d985578..279ca52 100644 --- a/dwl.c +++ b/dwl.c @@ -1099,10 +1099,10 @@ createpointer(struct wlr_pointer *pointer) libinput_device_config_tap_set_drag_enabled(libinput_device, tap_and_drag); libinput_device_config_tap_set_drag_lock_enabled(libinput_device, drag_lock); libinput_device_config_tap_set_button_map(libinput_device, button_map); - } - 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);