]> git.mdlowis.com Git - proto/labwc.git/commit
keyboard: prevent storing synthetic layout change key event
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 8 Oct 2023 17:26:16 +0000 (19:26 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 8 Oct 2023 19:11:32 +0000 (21:11 +0200)
commit3e2baa3f05ac963fbefe96132d7033ad6ce593a2
treea80f4126c40135ef529cefebe962f5600075d14e
parent65bd32d62500389a1d6affafac6d1989ba28042f
keyboard: prevent storing synthetic layout change key event

Before this patch, we were storing the key in our pressed set
and didn't remove it which in turn caused all further keybinds
to fail. The behavior was dependent on the exact flow of press
and release events and was most obvious when using
XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle

We now simply treat it as a modifier and thus do not store it
in the pressed set.

Fixes: #1129
src/keyboard.c