mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
xkb: Don't use _checked() requests
In XCB, each request has a checked and an unchecked version. The checked version can be used to check if the request caused any errors. Since the code here doesn't do this check, it shouldn't use the checked versions of the requests. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
bef7dfad47
commit
10daa6b09e
1 changed files with 9 additions and 9 deletions
18
xkb.c
18
xkb.c
|
@ -275,14 +275,14 @@ xkb_init(void)
|
|||
XCB_XKB_MAP_PART_VIRTUAL_MODS |
|
||||
XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP;
|
||||
|
||||
xcb_xkb_select_events_checked(globalconf.connection,
|
||||
XCB_XKB_ID_USE_CORE_KBD,
|
||||
map,
|
||||
0,
|
||||
map,
|
||||
map_parts,
|
||||
map_parts,
|
||||
0);
|
||||
xcb_xkb_select_events(globalconf.connection,
|
||||
XCB_XKB_ID_USE_CORE_KBD,
|
||||
map,
|
||||
0,
|
||||
map,
|
||||
map_parts,
|
||||
map_parts,
|
||||
0);
|
||||
|
||||
/* load keymap to use when resolving keypresses */
|
||||
xkb_init_keymap();
|
||||
|
@ -294,7 +294,7 @@ void
|
|||
xkb_free(void)
|
||||
{
|
||||
// unsubscribe from all events
|
||||
xcb_xkb_select_events_checked(globalconf.connection,
|
||||
xcb_xkb_select_events(globalconf.connection,
|
||||
XCB_XKB_ID_USE_CORE_KBD,
|
||||
0,
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue