From a91015fe0417345fe2e4dc21c0a948fdfd1a0027 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sat, 7 Jan 2023 00:04:48 +0600 Subject: [PATCH] wacom: Check suppressed increment first --- src/device/mouse_wacom_tablet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/mouse_wacom_tablet.c b/src/device/mouse_wacom_tablet.c index 03aa28bd5..19e5b53cc 100644 --- a/src/device/mouse_wacom_tablet.c +++ b/src/device/mouse_wacom_tablet.c @@ -328,10 +328,10 @@ wacom_report_timer(void *priv) } if (increment && !(x_diff > increment || y_diff > increment)) { - if (wacom->increment && !wacom_switch_off_to_on(wacom->b, wacom->oldb)) + if (wacom->suppressed_increment && (wacom->b == wacom->oldb)) return; - if (wacom->suppressed_increment && (wacom->b == wacom->oldb)) + if (wacom->increment && !wacom_switch_off_to_on(wacom->b, wacom->oldb)) return; } }