xcb_randr_get_output_primary(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 is XCB_RANDR_GET_OUTPUT_PRIMARY. this field also shows up in the xcb_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, use xcb_randr_get_output_primary_unchecked. See xcb-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 🫢✨