aboutsummaryrefslogtreecommitdiff
path: root/sway/config
diff options
context:
space:
mode:
authorRobert Kubosz <kubosz.robert@gmail.com>2018-07-11 22:03:06 +0200
committerRobert Kubosz <kubosz.robert@gmail.com>2018-07-11 22:03:06 +0200
commit41b80c28dfafb9bc13b68e4d5d2811d311b59863 (patch)
treebbc7fe4664da4e25e9d66b87a216e64024856b31 /sway/config
parent588abbb128c17430b8af1a26b4a3f01bbd5852e5 (diff)
downloadsway-41b80c28dfafb9bc13b68e4d5d2811d311b59863.tar.xz
add scroll button option
This commit introduces a scroll_button option, which is intended to be used with scroll_method. Now user can edit his sway config and add an scroll_button option to device section.
Diffstat (limited to 'sway/config')
-rw-r--r--sway/config/input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config/input.c b/sway/config/input.c
index 9840df18..62d77cf7 100644
--- a/sway/config/input.c
+++ b/sway/config/input.c
@@ -28,6 +28,7 @@ struct input_config *new_input_config(const char* identifier) {
input->accel_profile = INT_MIN;
input->pointer_accel = FLT_MIN;
input->scroll_method = INT_MIN;
+ input->scroll_button = INT_MIN;
input->left_handed = INT_MIN;
input->repeat_delay = INT_MIN;
input->repeat_rate = INT_MIN;
@@ -70,6 +71,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
if (src->scroll_method != INT_MIN) {
dst->scroll_method = src->scroll_method;
}
+ if (src->scroll_button != INT_MIN) {
+ dst->scroll_button= src->scroll_button;
+ }
if (src->send_events != INT_MIN) {
dst->send_events = src->send_events;
}