summaryrefslogtreecommitdiff
path: root/src/x11/keymap.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-02-08 16:18:16 +0200
committerRan Benita <ran234@gmail.com>2014-02-08 16:19:47 +0200
commit8fcb44b8a6bc6a0709c1b21ba39bdd2636e6d3e3 (patch)
treef05ed3f21878d886e38bde7331e38f8df457c060 /src/x11/keymap.c
parentf5465b56a3ada7aaf7e9dfb4956ca4de8cb28911 (diff)
downloadxorg-lib-libxkbcommon-8fcb44b8a6bc6a0709c1b21ba39bdd2636e6d3e3.tar.gz
x11: fix truncation of xkb controls mask off the wire
It's uint32_t, not uint16_t, so we were losing flags (not that it matters in this case). Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/x11/keymap.c')
-rw-r--r--src/x11/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/keymap.c b/src/x11/keymap.c
index 51b0219..6143e6e 100644
--- a/src/x11/keymap.c
+++ b/src/x11/keymap.c
@@ -99,7 +99,7 @@ translate_mods(uint8_t rmods, uint16_t vmods_low, uint16_t vmods_high)
}
static enum xkb_action_controls
-translate_controls_mask(uint16_t wire)
+translate_controls_mask(uint32_t wire)
{
enum xkb_action_controls ret = 0;
if (wire & XCB_XKB_BOOL_CTRL_REPEAT_KEYS)