From b0b92a84e6aedfd134805112bff5a8655cb12a43 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Fri, 6 Jan 2023 23:23:40 +0600 Subject: [PATCH] wacom: Fix increment modes --- src/device/mouse_wacom_tablet.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/device/mouse_wacom_tablet.c b/src/device/mouse_wacom_tablet.c index 951ec9c0e..03aa28bd5 100644 --- a/src/device/mouse_wacom_tablet.c +++ b/src/device/mouse_wacom_tablet.c @@ -327,14 +327,13 @@ wacom_report_timer(void *priv) } } - if (increment && !(x_diff > increment || y_diff > increment)) - return; + if (increment && !(x_diff > increment || y_diff > increment)) { + if (wacom->increment && !wacom_switch_off_to_on(wacom->b, wacom->oldb)) + return; - if (wacom->increment && !wacom_switch_off_to_on(wacom->b, wacom->oldb)) - return; - - if (wacom->suppressed_increment && (wacom->b == wacom->oldb)) - return; + if (wacom->suppressed_increment && (wacom->b == wacom->oldb)) + return; + } } transmit_prepare: