aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hid.c b/src/hid.c
index e87310f..a6be20b 100644
--- a/src/hid.c
+++ b/src/hid.c
@@ -367,7 +367,8 @@ bool
update_keyboard_report(struct hid_keyboard_report *new,
struct hid_keyboard_report *old)
{
- return memcmp(new->codes, old->codes, HID_REPORT_CODES);
+ return new->mods != old->mods
+ || memcmp(new->codes, old->codes, HID_REPORT_CODES);
}
bool