From 8fcb44b8a6bc6a0709c1b21ba39bdd2636e6d3e3 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 8 Feb 2014 16:18:16 +0200 Subject: [PATCH] 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 --- src/x11/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.7.4