xcb_xinerama_get_screen_count(3)
π¦ xcb_xinerama_get_screen_count β the XCB Requests girlies know π
okay so bestie, we're in the xcb_xinerama_get_screen_count(3) page, from the XCB Requests family, and honestly? it's a lil unhinged because half the docs are literally just "TODO: NOT YET DOCUMENTED." not me being the one to break it to you π but we're gonna work with what we've got and we're gonna slay it anyway. periodt.
β¨ NAME β¨
xcb_xinerama_get_screen_count β and that's it. that's the whole description. the original left it blank, fr fr. she's mysterious. she's giving mystery. π
β¨ SYNOPSIS β¨
first things first, you gotta let her in:
#include <xcb/xinerama.h>
π Request function
here's the vibe β you send the request and get a cookie back:
xcb_xinerama_get_screen_count_cookie_t
xcb_xinerama_get_screen_count(xcb_connection_t *conn,
xcb_window_t window);
πΈ Reply datastructure
and this is the lil struct that holds the tea once it comes back:
typedef struct xcb_xinerama_get_screen_count_reply_t {
uint8_t response_type;
uint8_t screen_count;
uint16_t sequence;
uint32_t length;
xcb_window_t window;
} xcb_xinerama_get_screen_count_reply_t;
π¦ Reply function
then you come back for the actual reply, no cap:
xcb_xinerama_get_screen_count_reply_t
*xcb_xinerama_get_screen_count_reply(xcb_connection_t *conn,
xcb_xinerama_get_screen_count_cookie_t cookie,
xcb_generic_error_t **e);
β¨ REQUEST ARGUMENTS β¨
connβ the XCB connection to X11. your lil hotline to the server, she's the main character here πwindowβ TODO: NOT YET DOCUMENTED. yeah. they said what they said. we move. π
β¨ REPLY FIELDS β¨
response_typeβ the type of this reply, which in this case isXCB_XINERAMA_GET_SCREEN_COUNT. she also lives inside thexcb_generic_reply_t, so you can use her to tell your replies apart from each other. very "which one of y'all is which" energy πsequenceβ the sequence number of the last request that got processed by the X11 server. like a little timestamp but for order of operations, iykyk βlengthβ the length of the reply, measured in words. and before you ask: a word is 4 bytes. a whole word. iconic unit choice, honestly πscreen_countβ TODO: NOT YET DOCUMENTED. bestie she's shy π«Άwindowβ TODO: NOT YET DOCUMENTED. also shy. they're shy together. it's giving mystery box π
β¨ DESCRIPTION β¨
...it's empty. that's the whole section. the original just put the heading there and dipped. no notes, she simply had nothing to say. leaving it exactly as the universe intended π
β¨ RETURN VALUE β¨
she hands you back an xcb_xinerama_get_screen_count_cookie_t. π
and here's the important part, so listen up: errors have to be handled when you call the reply function, xcb_xinerama_get_screen_count_reply.
if you'd rather handle errors in the event loop instead, then you use xcb_xinerama_get_screen_count_unchecked. see xcb-requests(3) for the details, because they wrote that one down properly π
β¨ ERRORS β¨
good news bestie: this request does never generate any errors. never ever. zero. none. she's drama-free. we love a low-maintenance request πΈ
β¨ SEE ALSO β¨
also empty. nothing here. a whole void. she said "see also: nothing, mind your business" π
β¨ AUTHOR β¨
Generated from xinerama.xml. if you wanna send corrections and improvements, contact xcb@lists.freedesktop.org β they're literally asking for the feedback, so go off π«Ά
and that's the whole page, bestie!! you ate that. now go forth and get those screen counts β¨
this was X Version 11, libxcb 1.17.0, and you just read xcb_xinerama_get_screen_count(3) β mwah, love u, bye π
π
π¦ 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