xcb_dri2_swap_interval(3)
π xcb_dri2_swap_interval β the manual page, but make it cute
okay so bestie, we're looking at xcb_dri2_swap_interval(3) from the XCB Requests family. she's part of libxcb, she lives in section 3 of the manual, and honestly? she's a little mysterious. let's get into it π«Ά
β¨ NAME β¨
xcb_dri2_swap_interval β
no cap, that's it. the description line is literally empty in the original. she's giving mystery, she's giving enigma, she's giving nothing. π
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <xcb/dri2.h>
π Request function
xcb_void_cookie_t xcb_dri2_swap_interval(xcb_connection_t *conn,
xcb_drawable_t drawable, uint32_t interval);
that's the whole vibe. three arguments, one cookie, zero drama. β¨
β¨ REQUEST ARGUMENTS β¨
connβ your XCB connection to X11. she's the bridge, the connector, the main character that lets you talk to the X server at all. πdrawableβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs just said "figure it out". iconic behaviour honestly πintervalβ TODO: NOT YET DOCUMENTED. same energy. nobody wrote it down. we move. π
β¨ DESCRIPTION β¨
soβ¦ there's nothing here. the DESCRIPTION section is empty in the original. like, fully empty. a void. a liminal space. π¦
ngl this is the part where a normal manpage would explain what swapping the interval actually does, and this one simply does not. no tea, no shade, just facts.
β¨ RETURN VALUE β¨
she hands you back an xcb_void_cookie_t. that's the whole return situation. πͺ
and here's the important part, bestie: errors (if any) have to be handled in the event loop. you don't get them handed to you directly, you gotta go find them. it's giving look for it yourself. π
but WAIT β if you'd rather handle errors directly with xcb_request_check instead, use:
xcb_dri2_swap_interval_checked
for the details on all of that, go read xcb-requests(3). she explains the whole cookie-and-error thing way better than I can in a group chat. π
β¨ ERRORS β¨
this request does never generate any errors. π
not one. not ever. she's chill like that. no error codes, no stress, no 3am debugging session. slay. π
β¨ SEE ALSO β¨
β¦empty. literally nothing listed here. this section is a ghost town and I respect her for it. π»
β¨ AUTHOR β¨
this page was Generated from dri2.xml. if you've got corrections or improvements, hit up xcb@lists.freedesktop.org β they're literally asking for it, bestie, so if you know something, say something. π§
πΈ a gentle reminder that empty DESCRIPTION and empty SEE ALSO sections are not me being lazy β that's genuinely what the page says. I would never gatekeep info from you. π«Ά
okay that's the whole page!! this was X Version 11, libxcb 1.17.0, and she's filed under xcb_dri2_swap_interval(3). thanks for reading my little manpage essay, you're the bestie fr fr πβ¨π
π¦ 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