mirror of
https://github.com/labwc/labwc.git
synced 2025-11-07 13:30:06 -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
|
|
@ -16,6 +16,8 @@ libinput_category_init(struct libinput_category *l)
|
|||
l->left_handed = -1;
|
||||
l->tap = LIBINPUT_CONFIG_TAP_ENABLED;
|
||||
l->tap_button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
|
||||
l->tap_and_drag = -1;
|
||||
l->drag_lock = -1;
|
||||
l->accel_profile = -1;
|
||||
l->middle_emu = -1;
|
||||
l->dwt = -1;
|
||||
|
|
|
|||
|
|
@ -408,6 +408,22 @@ fill_libinput_category(char *nodename, char *content)
|
|||
} else {
|
||||
wlr_log(WLR_ERROR, "invalid tapButtonMap");
|
||||
}
|
||||
} else if (!strcasecmp(nodename, "tapAndDrag")) {
|
||||
int ret = parse_bool(content, -1);
|
||||
if (ret < 0) {
|
||||
return;
|
||||
}
|
||||
current_libinput_category->tap_and_drag = ret
|
||||
? LIBINPUT_CONFIG_DRAG_ENABLED
|
||||
: LIBINPUT_CONFIG_DRAG_DISABLED;
|
||||
} else if (!strcasecmp(nodename, "dragLock")) {
|
||||
int ret = parse_bool(content, -1);
|
||||
if (ret < 0) {
|
||||
return;
|
||||
}
|
||||
current_libinput_category->drag_lock = ret
|
||||
? LIBINPUT_CONFIG_DRAG_LOCK_ENABLED
|
||||
: LIBINPUT_CONFIG_DRAG_LOCK_DISABLED;
|
||||
} else if (!strcasecmp(nodename, "accelProfile")) {
|
||||
current_libinput_category->accel_profile =
|
||||
get_accel_profile(content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue