aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-13 01:23:38 +0100
committerLouis Burda <quent.burda@gmail.com>2023-02-13 01:23:38 +0100
commit085d62c5a4c9cf37ce9de6bdbb4643e3a680450f (patch)
treed43638060a784323465a10a534f0992a016d5931 /src
parentecc81e80a5cc4320bc565e270e2185d9cf402b35 (diff)
downloadsxkbd-085d62c5a4c9cf37ce9de6bdbb4643e3a680450f.tar.gz
sxkbd-085d62c5a4c9cf37ce9de6bdbb4643e3a680450f.zip
fixup! Only update weakmods when new keycode is added
Diffstat (limited to 'src')
-rw-r--r--src/hid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hid.c b/src/hid.c
index a2b18e7..e87310f 100644
--- a/src/hid.c
+++ b/src/hid.c
@@ -296,6 +296,8 @@ process_keydown(uint32_t keysym, uint x, uint y)
add_keycode(TO_KC(keysym));
} else if (IS_KC(keysym) && IS_MOD_KC(TO_KC(keysym))) {
active_mods |= MOD_BIT(TO_KC(keysym));
+ } else if (IS_SWITCH(keysym) && IS_MOD(keysym)) {
+ active_mods |= parse_modifiers(keysym);
}
}