Merge pull request #558 from psychon/xkb-detectable-autorepeat
Xkb detectable autorepeat Closes https://github.com/awesomeWM/awesome/pull/558.
This commit is contained in:
commit
c9c60810cc
15
xkb.c
15
xkb.c
|
@ -275,7 +275,18 @@ xkb_init(void)
|
|||
XCB_XKB_MAP_PART_VIRTUAL_MODS |
|
||||
XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP;
|
||||
|
||||
xcb_xkb_select_events_checked(globalconf.connection,
|
||||
/* Enable detectable auto-repeat, but ignore failures */
|
||||
xcb_discard_reply(globalconf.connection,
|
||||
xcb_xkb_per_client_flags(globalconf.connection,
|
||||
XCB_XKB_ID_USE_CORE_KBD,
|
||||
XCB_XKB_PER_CLIENT_FLAG_DETECTABLE_AUTO_REPEAT,
|
||||
XCB_XKB_PER_CLIENT_FLAG_DETECTABLE_AUTO_REPEAT,
|
||||
0,
|
||||
0,
|
||||
0)
|
||||
.sequence);
|
||||
|
||||
xcb_xkb_select_events(globalconf.connection,
|
||||
XCB_XKB_ID_USE_CORE_KBD,
|
||||
map,
|
||||
0,
|
||||
|
@ -294,7 +305,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