currently there is a api for connecting with a xcb_auth_info_t structure but there is no nice api to actually get the structure. there should be a api like: xcb_auth_info_t *xcb_get_auth_info(const char *display); int xcb_create_fd(const char *display); why: I'm developing a module for ulatencyd that observes the local x server to detect the current program in focus. As the daemon has root privileges, he can't connect to X easily. To obtain the cookie the module needs to fork and drop to the user uid to obtain the cookie and use it with: xcb_connect_to_display_with_auth_info As no api is available, i had to copy a lot of xcb code to accomplish this.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libxcb/issues/21.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.