xcb_glx_chang...le_attributes(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

xcb_glx_change_drawable_attributes β€” bestie, that's it, that's the whole name. No little tagline, no explanation, the NAME section literally just drops the function name and dips πŸ’… (and yeah, the header truncates it to xcb_glx_chang...le_attributes(3), which is giving "we ran out of room at the party" energy).

This one lives in the XCB Requests manual, section 3, so it's a C library situation, not a command you type into your shell. 🫢


🌸 SYNOPSIS 🌸

First things first, you gotta pull in the header:

#include <xcb/glx.h>

Request function

xcb_void_cookie_t
       xcb_glx_change_drawable_attributes(xcb_connection_t *conn,
       xcb_glx_drawable_t drawable, uint32_t num_attribs, const
       uint32_t *attribs);

Look at that signature, it's iconic honestly. πŸ”₯


πŸŽ€ REQUEST ARGUMENTS πŸŽ€

  • conn β€” the XCB connection to X11. Your little red string to the X server, no cap. 🧡
  • drawable β€” TODO: NOT YET DOCUMENTED. Yeah. The docs said "not yet" and then just… never came back. 😭
  • num_attribs β€” TODO: NOT YET DOCUMENTED. Same vibe, same void. πŸ’€
  • attribs β€” TODO: NOT YET DOCUMENTED. Three for three, the documentation is not beating the allegations. πŸ™ˆ
Not me pointing out that the entire argument list is unofficially "figure it out bestie" β€” I'm just the messenger, the TODOs are canon.

πŸ’– DESCRIPTION πŸ’–

So… there is no description. Like, the section exists, it's labeled DESCRIPTION, and then it's just vibes and silence. πŸ¦‹ The TODO: NOT YET DOCUMENTED. energy from the arguments carried all the way down here. Respect the commitment, honestly.


⭐ RETURN VALUE ⭐

It hands you back an xcb_void_cookie_t. And here's the tea: if errors happen, you do not get them handed to you directly β€” you have to handle them in the event loop. That's the deal. πŸ‘‘

If you'd rather deal with errors immediately and directly with xcb_request_check instead, then use xcb_glx_change_drawable_attributes_checked β€” the _checked twin, she's the one who tells you things. ✨ And if you want the full rundown on how any of this request/cookie business works, go read xcb-requests(3). πŸ“–


πŸ’œ ERRORS πŸ’œ

This request does never generate any errors. Periodt. Not a single one. Error-free queen behavior, we love to see it. πŸ‘‘


🌈 SEE ALSO 🌈

Nothing. Empty. A whole section, zero references. It's giving "we had a slot open and filled it with air". 🎈


πŸ’« AUTHOR πŸ’«

Generated from glx.xml. If you spot something wrong and wanna get it corrected or improved, hit up xcb@lists.freedesktop.org β€” they're the ones who can fix it up. πŸ“¬


That's the whole page bestie, you're officially fluent in xcb_glx_change_drawable_attributes(3). 🫢 This lil writeup shipped with libxcb 1.17.0 under X Version 11, so if your version number's different, don't come for me, come for the changelog. πŸ’–πŸŽ€βœ¨