From 5c5665efca0ecccef82e276a806f9353042c5fca Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Thu, 18 Jan 2018 17:07:33 +0100 Subject: Revert "xcb: Add XKB_NEW_KEYBOARD_NOTIFY support" This reverts commit e9532f584fe014bd06c6d6595335618e2fccdaec. It should not matter for rofi, which is not meant to stay around long, and it messes with XTST (that tools like xscape use). Signed-off-by: Quentin Glidic --- source/xcb.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/xcb.c b/source/xcb.c index c637cc71..72a30152 100644 --- a/source/xcb.c +++ b/source/xcb.c @@ -845,13 +845,6 @@ static gboolean main_loop_x11_event_handler ( xcb_generic_event_t *ev, G_GNUC_UN if ( type == xcb->xkb.first_event ) { switch ( ev->pad0 ) { - case XCB_XKB_NEW_KEYBOARD_NOTIFY: - { - xcb_xkb_new_keyboard_notify_event_t *knkne = (xcb_xkb_new_keyboard_notify_event_t *) ev; - if ( ! ( knkne->changed & XCB_XKB_NKN_DETAIL_KEYCODES ) ) - break; - } - /* fallthrough */ case XCB_XKB_MAP_NOTIFY: { struct xkb_keymap *keymap = xkb_x11_keymap_new_from_device ( nk_bindings_seat_get_context ( xcb->bindings_seat ), xcb->connection, xcb->xkb.device_id, 0 ); -- cgit v1.2.3