xcb_randr_get_output_primary(3)
π xcb_randr_get_output_primary(3) π
okay so bestie, welcome to XCB Requests β this is the page for xcb_randr_get_output_primary(3) and we're gonna get you fluent in it, no cap. β¨
πΈ NAME πΈ
xcb_randr_get_output_primary -
(yeah the description line is literally empty in the source, so we're all just vibing here π the function name speaks for itself, iykyk)
π SYNOPSIS π
First things first, you gotta bring in the header:
#include <xcb/randr.h>
β¨ Request function β¨
xcb_randr_get_output_primary_cookie_t
xcb_randr_get_output_primary(xcb_connection_t *conn,
xcb_window_t window);
π¦ Reply datastructure π¦
typedef struct xcb_randr_get_output_primary_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_randr_output_t output;
} xcb_randr_get_output_primary_reply_t;
π Reply function π
xcb_randr_get_output_primary_reply_t
*xcb_randr_get_output_primary_reply(xcb_connection_t *conn,
xcb_randr_get_output_primary_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil lifeline to the server, she's the main character fr πwindowβ TODO: NOT YET DOCUMENTED. π yeah bestie they justβ¦ didn't write it. it's giving mystery. it's giving untold lore. we don't make the rules.
β REPLY FIELDS β
response_typeβ the type of this reply, which in this case isXCB_RANDR_GET_OUTPUT_PRIMARY. this field also shows up in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other when they're all piled up in the group chat. π«Άsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words. and reminder bestie, a word is 4 bytes. periodt.outputβ TODO: NOT YET DOCUMENTED. π again!! the docs said "figure it out yourself queen". iconic honestly.
π DESCRIPTION π
(the source page is literally blank here β no thoughts, head empty, just vibes π§)
π₯ RETURN VALUE π₯
Returns an xcb_randr_get_output_primary_cookie_t. π
Errors have to be handled when you call the reply function, xcb_randr_get_output_primary_reply.
If you'd rather handle errors in the event loop instead, usexcb_randr_get_output_primary_unchecked. Seexcb-requests(3)for the details, bestie. β¨
π ERRORS π
This request does never generate any errors.
(no drama, no mess, no error codes. she's a clean girl. π)
π SEE ALSO π
(the source page lists absolutely nothing here β it's a beautiful empty void and we respect it πΈ)
π AUTHOR π
Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π
and that's the whole page, bestie!! you ate that. now go forth and query your primary output like the unix icon you are π
this has been libxcb 1.17.0, from X Version 11, dated with all the love of xcb_randr_get_output_primary(3) β mwah, take care of her π«Άβ¨
π¦ 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