projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5465b5
)
x11: fix truncation of xkb controls mask off the wire
author
Ran Benita
<ran234@gmail.com>
Sat, 8 Feb 2014 14:18:16 +0000
(16:18 +0200)
committer
Ran Benita
<ran234@gmail.com>
Sat, 8 Feb 2014 14:19:47 +0000
(16:19 +0200)
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>
src/x11/keymap.c
patch
|
blob
|
history
diff --git
a/src/x11/keymap.c
b/src/x11/keymap.c
index
51b0219
..
6143e6e
100644
(file)
--- 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(uint
16
_t wire)
+translate_controls_mask(uint
32
_t wire)
{
enum xkb_action_controls ret = 0;
if (wire & XCB_XKB_BOOL_CTRL_REPEAT_KEYS)