9

Is xlib still used? The helpful documentation I can find is http://tronche.com/ which looks, to me, very outdated. Who uses Xlib? Is GTK+ and QT built on it? thanks in advance, ell.

1

3 Answers 3

6

Yes, toolkits like GTK+ and Qt are still built on Xlib. Migration to xcb is in progress, but far from complete or universal. Applications though really should be writing to the toolkit API's, not Xlib.

BTW, you can also find Xlib docs directly from the source at X.Org: http://www.x.org/releases/current/doc/

3

These days, libxcb is used. There is also an xlib compatibility layer still available (xlib-xcb).

3

Well if you want hardware acceleration, according to freedesktop.org:

an OpenGL application on the X Windows must use Xlib and thus can’t be done using only XCB.

You have to have xlib even if you're only using xcb if you want opengl.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.