diff options
author | Lucas Zampieri <lzampier@redhat.com> | 2022-11-24 17:18:50 -0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-12-09 11:28:53 +0100 |
commit | efd83cb8b911d88a17263a4ee8e62cf07dbfa4bd (patch) | |
tree | 5ae5c45e912e30a06f836d77b93de6d2a36217cd /sway/config/input.c | |
parent | 991d75904f1460a6cc3a0b11c145bff876035897 (diff) |
Add libinput RotationAngle
This patch adds the libinput option RotationAngle to sway.
Signoff-by: Lucas Zampieri <lzampier@redhat.com>
Diffstat (limited to 'sway/config/input.c')
-rw-r--r-- | sway/config/input.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |