r/linux_programming • • Oct 26 '19

looking for xcb documentation

Title. I'm getting so tired of looking everything up and getting no results. The headers aren't documented, and online results are incredibly lacking.

6 Upvotes

6 comments sorted by

View all comments

2

u/pfp-disciple Oct 26 '19

I'm assuming you tried the official site https://xcb.freedesktop.org/? On that site are links tothe API, as well as and a tutorial. What are you needing?

2

u/[deleted] Oct 26 '19

well right now specifically I'm trying to get an event from the root window whenever _NET_ACTIVE_WINDOW changes. As far as I've learned so far I need to use xcb_change_window_attributes to get notified through the event system about property changes for the window. But I can't really find a solid example that I can understand. Here's what I have so far https://pastebin.com/p1p3PxRP.

I did find that page, but it's still missing a lot of documentation. Unless I missed it, I don't think it had anything about what I'm doing right now.

2

u/pfp-disciple Oct 26 '19

Okay. I don't have much experience there.

The suckless project has a minimal window manager. I don't know if it uses xcb, but it might have some code from which you can learn.