Search code examples
linuxxlibwindow-managersxserver

Is xkb a part of xlib standard?


Is xkb a part of xlib standard? Can I use it in my applications, without any problems on all the "xorg-driven" systems?


Solution

  • So, I have not found up if xkb is part of xlib standard. But I have found up, that I can use xkb everywhere where I can use xlib. According to this Xlib's developers post:

    Programmers writing against the Xlib API will find some Xlib keyboard functions now call XKB support under the hood. Other Xlib keyboard calls are deprecated and should be replaced in applications by calls to replacement XKB functions in Xlib.

    So, you can use xkb almost everywhere. (Almost because it is possible to build x server without the extension, but in real life probably you can not meet it.