connect api calls missing (auth and create fd)
Submitted by bug..@..zi.org
Assigned to xcb mailing list dummy
Description
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.