3 ms·
> XCB (a clean X11 equivalent binary protocol for Xorg that, iirc libX11 is now built on top of) I thought XCB implements the same protocol but provides anothe
by panzi 12y ago
> XCB (a clean X11 equivalent binary protocol for Xorg that, iirc libX11 is now built on top of)
I thought XCB implements the same protocol but provides another (more modern) API. Am I mistaken? I never wrote code using libx11 or libxcb. Well, not 100% true, I forked and improved a tiny project that touches X11 at two small points. Doesn't really count. I don't get any understanding of X11/XCB from that:
https://github.com/panzi/qjoypad/blob/88ee6c1ed82999febc64b965d4bcf27432f221e0/src/event.cpp#L5 https://github.com/panzi/qjoypad/blob/88ee6c1ed82999febc64b9...
https://github.com/panzi/qjoypad/blob/88ee6c1ed82999febc64b965d4bcf27432f221e0/src/getkey.cpp#L47 https://github.com/panzi/qjoypad/blob/88ee6c1ed82999febc64b9...
- dllthomas 12y agoThis is basically true. It's the same packets on the wire - the biggest difference is that for most packets libx11 waits for a response while xcb returns a token representing a promise.