i3 / i3/i3

Get rid of the xcb-util-keysyms dependency in favor of libxkbcommon{,-x11}

Open
#1,868 4 comments 0 reactions 0 assignees View on GitHub
accepted enhancement
Dominant language
C
Stars
10.6k
Forks
822
PR merge metrics
No merged PRs in 30d

Description

Currently, we use a mixture of xcb-util-keysyms calls and libxkbcommon{,-x11} calls. As @bluetech explains, we should be able to switch entirely to libxkbcommon{,-x11}:

"""
It should be possible to remove the xcb/util/keysyms dependency and the all core protocol keyboard-related requests/events entirely. If you try that and there is something that you can't do, I'll be happy to help.

It should also be possible to keep the xkb_state updated with xkb_state_update_mask in the XKB_STATE_NOTIFY event handler; then you can query the xkb_state instead of interpreting the ->state field of the KeyPress event at all.

It should also be possible :) to use xkb_keysym_to_utf32 instead of i3-input/keysym2ucs.c and related files (internally it uses the same table mostly).
"""

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.