xcb_randr_get_monitors(3)
π xcb_randr_get_monitors(3) π
okay so bestie, welcome to the xcb_randr_get_monitors page β it lives in the XCB Requests section of the manual, and it's literally your all-access pass to asking the X server "hey girl, what monitors do we have rn?" π₯οΈβ¨
β¨ NAME β¨
xcb_randr_get_monitors β no cap, that's the whole name. The original page left the description blank, so we're just vibing with the function name itself π
πΈ SYNOPSIS πΈ
First things first, you gotta pull in the header:
#include <xcb/randr.h>
π Request function
xcb_randr_get_monitors_cookie_t
xcb_randr_get_monitors(xcb_connection_t *conn,
xcb_window_t window, uint8_t get_active);
π Reply datastructure
typedef struct xcb_randr_get_monitors_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_timestamp_t timestamp;
uint32_t nMonitors;
uint32_t nOutputs;
uint8_t pad1[12];
} xcb_randr_get_monitors_reply_t;
π Reply function
xcb_randr_get_monitors_reply_t
*xcb_randr_get_monitors_reply(xcb_connection_t *conn,
xcb_randr_get_monitors_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors
int xcb_randr_get_monitors_monitors_length(const
xcb_randr_get_monitors_reply_t *reply);
xcb_randr_monitor_info_iterator_t
xcb_randr_get_monitors_monitors_iterator(const
xcb_randr_get_monitors_reply_t *reply);
π¦ REQUEST ARGUMENTS π¦
connβ your XCB connection to X11. it's giving "the phone line to the server", she's essential π«Άwindowβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs just did not show up for this one πget_activeβ TODO: NOT YET DOCUMENTED. same energy, absolutely no tea provided π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_RANDR_GET_MONITORS. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other πsequenceβ the sequence number of the last request the X11 server processed. it's the β¨receipt numberβ¨ of the convolengthβ the length of the reply, counted in words (and a word here is4bytes, periodt)timestampβ TODO: NOT YET DOCUMENTED. πnMonitorsβ TODO: NOT YET DOCUMENTED. πnOutputsβ TODO: NOT YET DOCUMENTED. π
π DESCRIPTION π
this section is empty in the original, bestie. literally nothing. a whole blank page. so we're not gonna invent lore β we're just gonna acknowledge the silence with respect π
β RETURN VALUE β
She returns an xcb_randr_get_monitors_cookie_t πͺ β cute, right? But heads up: errors have to be handled when you call the reply function xcb_randr_get_monitors_reply.
If you'd rather handle errors in the event loop instead, use xcb_randr_get_monitors_unchecked. See xcb-requests(3) for the details, iykyk πβ¨
π ERRORS π
This request does never generate any errors. not a single one. she's unproblematic, she's drama-free, she's the main character of requests π₯
π§ SEE ALSO π§
this one's empty on the original page too β no references listed, so nothing to link, no crumbs left behind π
π AUTHOR π
Generated from randr.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org β they're literally taking notes ππ
and that's the whole page, bestie π«Ά shoutout to X Version 11 and libxcb 1.17.0, which is exactly what this xcb_randr_get_monitors(3) page is stamped with. go check your monitors, slay, and stay hydrated πβ¨πΈπ¦π
π¦ 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