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
4
xkb.c
4
xkb.c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue