mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
config: support <tapAndDrag> and <dragLock>
This commit is contained in:
parent
4268991105
commit
3c3656f74e
6 changed files with 48 additions and 0 deletions
18
src/seat.c
18
src/seat.c
|
|
@ -95,6 +95,24 @@ configure_libinput(struct wlr_input_device *wlr_input_device)
|
|||
dc->tap_button_map);
|
||||
}
|
||||
|
||||
if (libinput_device_config_tap_get_finger_count(libinput_dev) <= 0
|
||||
|| dc->tap_and_drag < 0) {
|
||||
wlr_log(WLR_INFO, "tap-and-drag not configured");
|
||||
} else {
|
||||
wlr_log(WLR_INFO, "tap-and-drag configured");
|
||||
libinput_device_config_tap_set_drag_enabled(
|
||||
libinput_dev, dc->tap_and_drag);
|
||||
}
|
||||
|
||||
if (libinput_device_config_tap_get_finger_count(libinput_dev) <= 0
|
||||
|| dc->drag_lock < 0) {
|
||||
wlr_log(WLR_INFO, "drag lock not configured");
|
||||
} else {
|
||||
wlr_log(WLR_INFO, "drag lock configured");
|
||||
libinput_device_config_tap_set_drag_lock_enabled(
|
||||
libinput_dev, dc->drag_lock);
|
||||
}
|
||||
|
||||
if (libinput_device_config_scroll_has_natural_scroll(libinput_dev) <= 0
|
||||
|| dc->natural_scroll < 0) {
|
||||
wlr_log(WLR_INFO, "natural scroll not configured");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue