xcb_randr_set_screen_config(3)
π xcb_randr_set_screen_config β the XCB Requests glow-up π
okay bestie, sit down, hydrate, because we're diving into xcb_randr_set_screen_config from the XCB Requests corner of the X11 universe. this is a libxcb function, it lives in <xcb/randr.h>, and it is exactly as extra as it sounds. π¦
β¨ NAME β¨
xcb_randr_set_screen_config β setting your screen config, bestie. that's the whole vibe. (the original manpage left this blank, which is honestly so real of it, but we're keeping it blank too because facts don't change just because i'm hyped. π
)
πΈ SYNOPSIS πΈ
#include <xcb/randr.h>
π Request function
xcb_randr_set_screen_config_cookie_t
xcb_randr_set_screen_config(xcb_connection_t *conn,
xcb_window_t window, xcb_timestamp_t timestamp,
xcb_timestamp_t config_timestamp, uint16_t sizeID,
uint16_t rotation, uint16_t rate);
π Reply datastructure
typedef struct xcb_randr_set_screen_config_reply_t {
uint8_t response_type;
uint8_t status;
uint16_t sequence;
uint32_t length;
xcb_timestamp_t new_timestamp;
xcb_timestamp_t config_timestamp;
xcb_window_t root;
uint16_t subpixel_order;
uint8_t pad0[10];
} xcb_randr_set_screen_config_reply_t;
π Reply function
xcb_randr_set_screen_config_reply_t
*xcb_randr_set_screen_config_reply(xcb_connection_t *conn,
xcb_randr_set_screen_config_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole portal to the server, the main character of every XCB call, no cap. π₯windowβTODO: NOT YET DOCUMENTED.yeah. the manpage really said "mystery" on this one. π«ΆtimestampβTODO: NOT YET DOCUMENTED.same energy, bestie. it's giving unwritten. πconfig_timestampβTODO: NOT YET DOCUMENTED.also undocumented. iconic in a chaotic way. πsizeIDβTODO: NOT YET DOCUMENTED.the docs simply did not come through. πrotationβTODO: NOT YET DOCUMENTED.spinning, presumably, but the manpage won't confirm that, and neither will i. πrateβTODO: NOT YET DOCUMENTED.also a mystery box. β¨
fr fr: every one of those args is literally marked TODO: NOT YET DOCUMENTED. in the source. i am not making this up, and i am not filling in the gaps with guesses. facts only. π§
π¦ REPLY FIELDS π¦
response_typeβ the type of this reply, in this caseXCB_RANDR_SET_SCREEN_CONFIG. this field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. it's the little name tag at the party. πsequenceβ the sequence number of the last request processed by the X11 server. basically the receipt number. keep it. πlengthβ the length of the reply, in words (a word is 4 bytes). math girlies rise. π₯statusβTODO: NOT YET DOCUMENTED.yep. πnew_timestampβTODO: NOT YET DOCUMENTED.πconfig_timestampβTODO: NOT YET DOCUMENTED.(yes, there's one in the request AND one in the reply, and no, neither is documented. we stay unbothered.) πrootβTODO: NOT YET DOCUMENTED.πΈsubpixel_orderβTODO: NOT YET DOCUMENTED.β¨
π DESCRIPTION π
the DESCRIPTION section of the original manpage is, and i say this with love, completely empty. no paragraphs. no prose. nothing. it's giving silent treatment, it's giving mystery, it's giving "we'll tell you later" and then never telling you. π
so we're keeping it empty too, bestie. the vibe is preserved. the facts are preserved. the emptiness is canon. π«Ά
π RETURN VALUE π
returns an xcb_randr_set_screen_config_cookie_t. πͺ
errors have to be handled when calling the reply function xcb_randr_set_screen_config_reply.
if you want to handle errors in the event loop instead, use xcb_randr_set_screen_config_unchecked. see xcb-requests(3) for details.
ok so real talk:xcb_randr_set_screen_config_reply= you get your errors right there, up close and personal.xcb_randr_set_screen_config_unchecked= you go event-loop mode and deal with them as they arrive. pick your fighter. π
π ERRORS π
this request does never generate any errors.
not one. zero. nada. it's the good kid of the XCB family. π§β¨
π SEE ALSO π
...and that's it. the SEE ALSO section is genuinely empty in the original. no cross references, no little friends, nothing. it stands alone, main character energy, no supporting cast. π
πΈ AUTHOR πΈ
generated from randr.xml. contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie!! π this little gem shipped as part of X Version 11, from libxcb 1.17.0, and yes, the manual page header really does say xcb_randr_set_screen_config(3) β mwah, obsessed, periodt. π
π
π¦ 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