diff options
Diffstat (limited to 'sway/config/input.c')
-rw-r--r-- | sway/config/input.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/config/input.c b/sway/config/input.c index a998e170..44c2be28 100644 --- a/sway/config/input.c +++ b/sway/config/input.c | |||
@@ -25,14 +25,17 @@ struct input_config *new_input_config(const char* identifier) { | |||
25 | input->drag = INT_MIN; | 25 | input->drag = INT_MIN; |
26 | input->drag_lock = INT_MIN; | 26 | input->drag_lock = INT_MIN; |
27 | input->dwt = INT_MIN; | 27 | input->dwt = INT_MIN; |
28 | input->dwtp = INT_MIN; | ||
28 | input->send_events = INT_MIN; | 29 | input->send_events = INT_MIN; |
29 | input->click_method = INT_MIN; | 30 | input->click_method = INT_MIN; |
30 | input->middle_emulation = INT_MIN; | 31 | input->middle_emulation = INT_MIN; |
31 | input->natural_scroll = INT_MIN; | 32 | input->natural_scroll = INT_MIN; |
32 | input->accel_profile = INT_MIN; | 33 | input->accel_profile = INT_MIN; |
34 | input->rotation_angle = FLT_MIN; | ||
33 | input->pointer_accel = FLT_MIN; | 35 | input->pointer_accel = FLT_MIN; |
34 | input->scroll_factor = FLT_MIN; | 36 | input->scroll_factor = FLT_MIN; |
35 | input->scroll_button = INT_MIN; | 37 | input->scroll_button = INT_MIN; |
38 | input->scroll_button_lock = INT_MIN; | ||
36 | input->scroll_method = INT_MIN; | 39 | input->scroll_method = INT_MIN; |
37 | input->left_handed = INT_MIN; | 40 | input->left_handed = INT_MIN; |
38 | input->repeat_delay = INT_MIN; | 41 | input->repeat_delay = INT_MIN; |
@@ -61,6 +64,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) { | |||
61 | if (src->dwt != INT_MIN) { | 64 | if (src->dwt != INT_MIN) { |
62 | dst->dwt = src->dwt; | 65 | dst->dwt = src->dwt; |
63 | } | 66 | } |
67 | if (src->dwtp != INT_MIN) { | ||
68 | dst->dwtp = src->dwtp; | ||
69 | } | ||
64 | if (src->left_handed != INT_MIN) { | 70 | if (src->left_handed != INT_MIN) { |
65 | dst->left_handed = src->left_handed; | 71 | dst->left_handed = src->left_handed; |
66 | } | 72 | } |
@@ -70,6 +76,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) { | |||
70 | if (src->natural_scroll != INT_MIN) { | 76 | if (src->natural_scroll != INT_MIN) { |
71 | dst->natural_scroll = src->natural_scroll; | 77 | dst->natural_scroll = src->natural_scroll; |
72 | } | 78 | } |
79 | if (src->rotation_angle != FLT_MIN) { | ||
80 | dst->rotation_angle = src->rotation_angle; | ||
81 | } | ||
73 | if (src->pointer_accel != FLT_MIN) { | 82 | if (src->pointer_accel != FLT_MIN) { |
74 | dst->pointer_accel = src->pointer_accel; | 83 | dst->pointer_accel = src->pointer_accel; |
75 | } | 84 | } |
@@ -88,6 +97,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) { | |||
88 | if (src->scroll_button != INT_MIN) { | 97 | if (src->scroll_button != INT_MIN) { |
89 | dst->scroll_button = src->scroll_button; | 98 | dst->scroll_button = src->scroll_button; |
90 | } | 99 | } |
100 | if (src->scroll_button_lock != INT_MIN) { | ||
101 | dst->scroll_button_lock = src->scroll_button_lock; | ||
102 | } | ||
91 | if (src->send_events != INT_MIN) { | 103 | if (src->send_events != INT_MIN) { |
92 | dst->send_events = src->send_events; | 104 | dst->send_events = src->send_events; |
93 | } | 105 | } |