xcb_randr_create_lease(3)
๐ xcb_randr_create_lease ๐
okay bestie, welcome to the xcb_randr_create_lease page from the XCB Requests fam (that's xcb_randr_create_lease(3) if you're being formal at the function's birthday party ๐). grab a lil snack, we're doing randr leases today and honestly? iconic behaviour.
โจ NAME โจ
xcb_randr_create_lease โ literally no description here ๐ญ the original page leaves this blank, so we're leaving it blank too. the vibes are mysterious, the function is named, that's the whole story fr fr.
๐ SYNOPSIS ๐
First things first, you gotta pull in the header, no cap:
#include <xcb/randr.h>
๐ Request function
xcb_randr_create_lease_cookie_t
xcb_randr_create_lease(xcb_connection_t *conn,
xcb_window_t window, xcb_randr_lease_t lid, uint16_t num_crtcs,
uint16_t num_outputs, const xcb_randr_crtc_t *crtcs, const
xcb_randr_output_t *outputs);
๐ฆ Reply datastructure
the lil struct you get back, exactly as written:
typedef struct xcb_randr_create_lease_reply_t {
uint8_t response_type;
uint8_t nfd;
uint16_t sequence;
uint32_t length;
uint8_t pad0[24];
} xcb_randr_create_lease_reply_t;
๐ธ Reply function
xcb_randr_create_lease_reply_t
*xcb_randr_create_lease_reply(xcb_connection_t *conn,
xcb_randr_create_lease_cookie_t cookie, xcb_generic_error_t **e);
๐ REQUEST ARGUMENTS ๐
the tea on every single thing you're passing in:
connโ your XCB connection to X11. it's giving "the whole reason we're here" energy.windowโ TODO: NOT YET DOCUMENTED. ๐ the docs just did not show up to class today.lidโ TODO: NOT YET DOCUMENTED. same, bestie. same.num_crtcsโ TODO: NOT YET DOCUMENTED. the mystery continues.num_outputsโ TODO: NOT YET DOCUMENTED. not a single clue was provided ๐ญcrtcsโ TODO: NOT YET DOCUMENTED. undoc'd and unbothered.outputsโ TODO: NOT YET DOCUMENTED. we truly know nothing and that's the situation.
ngl, this whole arguments section is a group chat where everyone left you on read. that's just how the page is, we're not inventing lore ๐ฅ
๐ REPLY FIELDS ๐
what's inside that reply when it comes back to you:
response_typeโ the type of this reply, which in this case isXCB_RANDR_CREATE_LEASE. this field is also chilling in thexcb_generic_reply_t, and you can use it to tell replies apart from each other. it's basically the reply's little name tag ๐ท๏ธsequenceโ the sequence number of the last request that got processed by the X11 server.lengthโ how long the reply is, in words (and a word is 4 bytes, so do your lil math ๐งฎ).nfdโ TODO: NOT YET DOCUMENTED. ๐ซmaster_fdโ TODO: NOT YET DOCUMENTED. also undocumented, also mysterious, also somehow on the list. periodt.
๐ง DESCRIPTION ๐ง
okay so. the original page has a DESCRIPTION section and it is... completely empty. nothing. a void. a blank canvas. a main character with no backstory ๐ we are preserving that emptiness exactly as it came, because we keep every single detail, including the details that are literally nothing. respect the emptiness bestie โจ
โญ RETURN VALUE โญ
it hands you back an xcb_randr_create_lease_cookie_t. ๐ช (a cookie!! how cute is that)
errors? you gotta deal with those yourself, and specifically when you call the reply function xcb_randr_create_lease_reply.
and if you'd rather handle errors in the event loop instead, use xcb_randr_create_lease_unchecked. see xcb-requests(3) for the deets. iykyk ๐
๐ ERRORS ๐
this request does never generate any errors. โจ
zero drama, zero errors, the most well-behaved request in the whole building. we love a low-maintenance icon ๐
๐ฅ SEE ALSO ๐ฅ
nothing listed here! the original SEE ALSO section is empty, so there's nothing to point you at. a moment of silence for the cross-references that never were ๐ญ๐ธ
๐ AUTHOR ๐
generated from randr.xml. if you've got corrections and improvements, hit up xcb@lists.freedesktop.org โ they're literally waiting for your feedback, bestie ๐ซถ
and that's the whole page! ๐ this beauty came to you from X Version 11, libxcb 1.17.0, and yes it's xcb_randr_create_lease(3) โ go forth, make leases, slay the randr game. mwah ๐
โจ๐
๐ฆ 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