summaryrefslogtreecommitdiff
path: root/driver/touchpad_st.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/touchpad_st.c')
-rw-r--r--driver/touchpad_st.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c
index 57c25a5181..d4ba6e7d5b 100644
--- a/driver/touchpad_st.c
+++ b/driver/touchpad_st.c
@@ -298,7 +298,9 @@ static int st_tp_write_hid_report(void)
if (!num_finger && !domeswitch_changed) /* nothing changed */
return 0;
- report.button = !!(system_state & SYSTEM_STATE_DOME_SWITCH_LEVEL);
+ /* Don't report 0 finger click. */
+ if (num_finger && (system_state & SYSTEM_STATE_DOME_SWITCH_LEVEL))
+ report.button = 1;
report.count = num_finger;
report.timestamp = irq_ts / USB_HID_TOUCHPAD_TIMESTAMP_UNIT;