xcb_glx_make_current(3)
π xcb_glx_make_current(3) π
okay bestie, welcome to the XCB Requests corner of the manual, and today's main character is xcb_glx_make_current. she's a GLX request from <xcb/glx.h> and she's here to, well, make something current. iconic behaviour, honestly. π
β¨ NAME β¨
xcb_glx_make_current β and that's it, that's the whole description. the manpage literally left this one blank, bestie. no cap. the description field is justβ¦ vibes. empty vibes. π
β¨ SYNOPSIS β¨
#include <xcb/glx.h>
π Request function
xcb_glx_make_current_cookie_t
xcb_glx_make_current(xcb_connection_t *conn,
xcb_glx_drawable_t drawable, xcb_glx_context_t context,
xcb_glx_context_tag_t old_context_tag);
π¦ Reply datastructure
typedef struct xcb_glx_make_current_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_glx_context_tag_t context_tag;
uint8_t pad1[20];
} xcb_glx_make_current_reply_t;
πΈ Reply function
xcb_glx_make_current_reply_t
*xcb_glx_make_current_reply(xcb_connection_t *conn,
xcb_glx_make_current_cookie_t cookie, xcb_generic_error_t **e);
β¨ REQUEST ARGUMENTS β¨
connβ your XCB connection to X11. the whole lil telephone line to the server, periodt. βοΈdrawableβ TODO: NOT YET DOCUMENTED. yeah. the docs said "we'll get to it" and then did not get to it. πcontextβ TODO: NOT YET DOCUMENTED. same energy, same blankness. πold_context_tagβ TODO: NOT YET DOCUMENTED. the trilogy of mystery. three args, zero explanations, we love a cryptic queen. π
β¨ REPLY FIELDS β¨
response_typeβ what kind of reply this is, and in this specific case it'sXCB_GLX_MAKE_CURRENT. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other β like name tags at a party but for protocol messages. πsequenceβ the sequence number of the last request the X11 server got around to processing. it's the server's lil "I did this one" receipt. π§Ύlengthβ how long the reply is, measured in words. and bestie, a word is 4 bytes, don't forget it. πcontext_tagβ TODO: NOT YET DOCUMENTED. the mystery continues. she's giving enigma. π
β¨ DESCRIPTION β¨
β¦nothing. literally nothing. the DESCRIPTION section is empty. the author said "no thoughts, head empty" and hit publish. not me reading an empty section like ποΈπποΈ
β¨ RETURN VALUE β¨
she hands you back an xcb_glx_make_current_cookie_t πͺ. errors? those don't show up here β you have to deal with them when you call the reply function xcb_glx_make_current_reply.
but wait, there's another option: if you'd rather catch errors in your event loop instead, use xcb_glx_make_current_unchecked. peek xcb-requests(3) for the whole rundown on how that works. π«Ά
β¨ ERRORS β¨
this request does never generate any errors. not one. zero. she's flawless, she's unbothered, she's error-free. β¨
β¨ SEE ALSO β¨
β¦also empty. the manpage really said "go find it yourself bestie". π
β¨ AUTHOR β¨
generated from glx.xml. if you spot something wrong or wanna suggest improvements, hit up xcb@lists.freedesktop.org β they're the ones who can fix it up. π¬
and that's the whole page, bestie!! this lil gem ships with X Version 11 and libxcb 1.17.0. mwah, go forth and make things current. π β¨ππ¦π
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms