xcb_xinerama_get_state(3)
π xcb_xinerama_get_state β bestie edition
okay so real talk: this is xcb_xinerama_get_state(3), part of the XCB Requests lineup, and it lives in libxcb. It's a little request that asks the X server "hey, what's the Xinerama state looking like rn?" and hands you back a cookie so you can go get the answer later. Let's get into it π«Ά
β¨ SYNOPSIS β¨
First things first, you gotta include the header:
#include <xcb/xinerama.h>
π Request function
xcb_xinerama_get_state_cookie_t
xcb_xinerama_get_state(xcb_connection_t *conn,
xcb_window_t window);
π¦ Reply datastructure
typedef struct xcb_xinerama_get_state_reply_t {
uint8_t response_type;
uint8_t state;
uint16_t sequence;
uint32_t length;
xcb_window_t window;
} xcb_xinerama_get_state_reply_t;
πΈ Reply function
xcb_xinerama_get_state_reply_t
*xcb_xinerama_get_state_reply(xcb_connection_t *conn,
xcb_xinerama_get_state_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, no cap βοΈwindowβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs really just left us on read here π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_XINERAMA_GET_STATE. it also shows up in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. it's giving name tag at a party π·οΈsequenceβ the sequence number of the last request processed by the X11 server. lowkey your receipt number for "what order did stuff happen in" π§Ύlengthβ the length of the reply, in words (and a word is4bytes, periodt).stateβ TODO: NOT YET DOCUMENTED. the mystery field πwindowβ TODO: NOT YET DOCUMENTED. also a mystery, also not my fault, blame the XML π
π DESCRIPTION π
...yeah there's literally nothing here. the original page said nothing and I'm not about to invent lore, bestie. moving on with our lives π
β RETURN VALUE β
You get back an xcb_xinerama_get_state_cookie_t πͺ β iconic, delicious, but not the actual answer yet. Errors have to be handled when you call the reply function xcb_xinerama_get_state_reply.
If you'd rather handle errors in the event loop instead, use xcb_xinerama_get_state_unchecked. See xcb-requests(3) for the deets. iykyk π₯
π ERRORS π
This request does never generate any errors. not one. zero. it's the chillest request at the function sleepover π
π¦ SEE ALSO π¦
(empty, bestie β nothing to link, the page just left this section vibing on its own πΈ)
π AUTHOR π
Generated from xinerama.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. like, fr fr, they wanna hear from you π«Ά
and that's the whole page, bestie β¨ this came to you from X Version 11, libxcb 1.17.0, and the page is xcb_xinerama_get_state(3). stay hydrated, read your manpages, and slay πππ¦
π¦ 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