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:
Uli Schlachter 2015-11-07 12:24:21 +01:00
parent bef7dfad47
commit 10daa6b09e
1 changed files with 9 additions and 9 deletions

4
xkb.c
View File

@ -275,7 +275,7 @@ 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_select_events(globalconf.connection,
XCB_XKB_ID_USE_CORE_KBD,
map,
0,
@ -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,