Natural scrolling should only affect touchpads

e622edb0944ec606d5add93532c20ddbb5c5386d
Alexis Sellier committed ago 1 parent 94e18277
config.def.h +1 -1
99 99
static const bool tap_to_click            = true;
100 100
/* Keep a tapped item grabbed while the finger moves. */
101 101
static const bool tap_and_drag            = true;
102 102
/* Keep dragging after the finger is briefly lifted and placed down again. */
103 103
static const bool drag_lock               = true;
104 -
/* Reverse the usual scrolling direction when enabled. */
104 +
/* Reverse the touchpad's usual scrolling direction when enabled. */
105 105
static const bool natural_scrolling       = false;
106 106
/* Ignore touchpad input while typing. */
107 107
static const bool disable_while_typing    = true;
108 108
/* Swap the primary and secondary pointer buttons when enabled. */
109 109
static const bool left_handed             = false;
swm.c +3 -2
2691 2691
        if (libinput_device_config_tap_get_finger_count(device)) {
2692 2692
            libinput_device_config_tap_set_enabled(device, tap_to_click);
2693 2693
            libinput_device_config_tap_set_drag_enabled(device, tap_and_drag);
2694 2694
            libinput_device_config_tap_set_drag_lock_enabled(device, drag_lock);
2695 2695
            libinput_device_config_tap_set_button_map(device, button_map);
2696 +
2697 +
            if (libinput_device_config_scroll_has_natural_scroll(device))
2698 +
                libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
2696 2699
        }
2697 -
        if (libinput_device_config_scroll_has_natural_scroll(device))
2698 -
            libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
2699 2700
2700 2701
        if (libinput_device_config_dwt_is_available(device))
2701 2702
            libinput_device_config_dwt_set_enabled(device, disable_while_typing);
2702 2703
2703 2704
        if (libinput_device_config_left_handed_is_available(device))