开发者

Is Xlib Still Used?

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 i开发者_如何学Pythont? thanks in advance, ell.


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/


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜