mirror of
https://github.com/swaywm/sway.git
synced 2026-02-28 01:41:02 -05:00
Add libinput RotationAngle
This patch adds the libinput option RotationAngle to sway. Signoff-by: Lucas Zampieri <lzampier@redhat.com>
This commit is contained in:
parent
991d75904f
commit
efd83cb8b9
8 changed files with 56 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue