From efd83cb8b911d88a17263a4ee8e62cf07dbfa4bd Mon Sep 17 00:00:00 2001 From: Lucas Zampieri Date: Thu, 24 Nov 2022 17:18:50 -0300 Subject: Add libinput RotationAngle This patch adds the libinput option RotationAngle to sway. Signoff-by: Lucas Zampieri --- sway/config/input.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sway/config/input.c') diff --git a/sway/config/input.c b/sway/config/input.c index a98204df..2ee165c9 100644 --- a/sway/config/input.c +++ b/sway/config/input.c @@ -31,6 +31,7 @@ struct input_config *new_input_config(const char* identifier) { input->middle_emulation = INT_MIN; input->natural_scroll = INT_MIN; input->accel_profile = INT_MIN; + input->rotation_angle = FLT_MIN; input->pointer_accel = FLT_MIN; input->scroll_factor = FLT_MIN; input->scroll_button = INT_MIN; @@ -74,6 +75,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) { if (src->natural_scroll != INT_MIN) { dst->natural_scroll = src->natural_scroll; } + if (src->rotation_angle != FLT_MIN) { + dst->rotation_angle = src->rotation_angle; + } if (src->pointer_accel != FLT_MIN) { dst->pointer_accel = src->pointer_accel; } -- cgit v1.2.3