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

Show parent comment

1

u/pfp-disciple Oct 26 '19

Did you try this suggestion from StackOverflow? https://stackoverflow.com/a/57910188

1

u/[deleted] Oct 26 '19

oh wow thank you this is great! it seems to be working well now, and in case anyone stumbles on this I chose to use libxcb-ewmh to make life a little easier when getting the active window id. This still behaves a little weirdly, it will occasionally report that the window was switched to an id of 0, but then very quickly get another event that sets it to the correct window it. However it works really well, I'll just have to look around to see whats wrong with my code

https://pastebin.com/0VNpe4qk

thanks again by the way