mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Merge pull request #2725 from PumbaPe/add-tap-and-drag
Add tap and drag to sway-input
This commit is contained in:
commit
8f6aca2166
8 changed files with 44 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ struct input_config *new_input_config(const char* identifier) {
|
|||
|
||||
input->tap = INT_MIN;
|
||||
input->tap_button_map = INT_MIN;
|
||||
input->drag = INT_MIN;
|
||||
input->drag_lock = INT_MIN;
|
||||
input->dwt = INT_MIN;
|
||||
input->send_events = INT_MIN;
|
||||
|
|
@ -46,6 +47,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
|
|||
if (src->click_method != INT_MIN) {
|
||||
dst->click_method = src->click_method;
|
||||
}
|
||||
if (src->drag != INT_MIN) {
|
||||
dst->drag = src->drag;
|
||||
}
|
||||
if (src->drag_lock != INT_MIN) {
|
||||
dst->drag_lock = src->drag_lock;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue