Bugfix: That should be xcb_keycode_t, not xcb_keysym_t
This commit is contained in:
parent
69c9db4016
commit
aefae99a11
|
@ -262,11 +262,11 @@ void xcb_get_numlock_mask(xcb_connection_t *conn) {
|
|||
|
||||
/* Get the keycode for numlock */
|
||||
#ifdef OLD_XCB_KEYSYMS_API
|
||||
xcb_keysym_t numlock = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
|
||||
xcb_keycode_t numlock = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
|
||||
#else
|
||||
/* For now, we only use the first keysymbol. */
|
||||
xcb_keysym_t *numlock_syms = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
|
||||
xcb_keysym_t numlock = *numlock_syms;
|
||||
xcb_keycode_t *numlock_syms = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
|
||||
xcb_keycode_t numlock = *numlock_syms;
|
||||
#endif
|
||||
|
||||
/* Check all modifiers (Mod1-Mod5, Shift, Control, Lock) */
|
||||
|
|
Loading…
Reference in New Issue