mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Add scroll factor config option.
This commit is contained in:
parent
b87250425f
commit
70bc4c3ab6
11 changed files with 80 additions and 7 deletions
|
|
@ -29,6 +29,7 @@ struct input_config *new_input_config(const char* identifier) {
|
|||
input->natural_scroll = INT_MIN;
|
||||
input->accel_profile = INT_MIN;
|
||||
input->pointer_accel = FLT_MIN;
|
||||
input->scroll_factor = FLT_MIN;
|
||||
input->scroll_button = INT_MIN;
|
||||
input->scroll_method = INT_MIN;
|
||||
input->left_handed = INT_MIN;
|
||||
|
|
@ -68,6 +69,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
|
|||
if (src->pointer_accel != FLT_MIN) {
|
||||
dst->pointer_accel = src->pointer_accel;
|
||||
}
|
||||
if (src->scroll_factor != FLT_MIN) {
|
||||
dst->scroll_factor = src->scroll_factor;
|
||||
}
|
||||
if (src->repeat_delay != INT_MIN) {
|
||||
dst->repeat_delay = src->repeat_delay;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue