xcb_xinerama_get_screen_size(3)
β¨ xcb_xinerama_get_screen_size β¨
okay bestie so this is a page from the XCB Requests manual set β it's xcb_xinerama_get_screen_size, and we're gonna get you all caught up on it π
πΈ NAME πΈ
xcb_xinerama_get_screen_size β
ngl the original page just leaves a lil dash there and nothing else. that's it. that's the name section. iconic minimalism I guess π
π SYNOPSIS π
First up, the include, as always:
#include <xcb/xinerama.h>
π« Request function π«
xcb_xinerama_get_screen_size_cookie_t
xcb_xinerama_get_screen_size(xcb_connection_t *conn,
xcb_window_t window, uint32_t screen);
π« Reply datastructure π«
typedef struct xcb_xinerama_get_screen_size_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t width;
uint32_t height;
xcb_window_t window;
uint32_t screen;
} xcb_xinerama_get_screen_size_reply_t;
π« Reply function π«
xcb_xinerama_get_screen_size_reply_t
*xcb_xinerama_get_screen_size_reply(xcb_connection_t *conn,
xcb_xinerama_get_screen_size_cookie_t cookie,
xcb_generic_error_t **e);
π¦ REQUEST ARGUMENTS π¦
connβ the XCB connection to X11, your lil hotline to the server π«Άwindowβ TODO: NOT YET DOCUMENTED. yeah fr, the docs said "we'll get to it" and then never did πscreenβ TODO: NOT YET DOCUMENTED. same energy, bestie, nobody wrote this one either π
π REPLY FIELDS π
response_typeβ what kind of reply this is! in this case it'sXCB_XINERAMA_GET_SCREEN_SIZE. 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 actually processed βlengthβ how long the reply is, measured in words (and a word is 4 bytes, no cap) πwidthβ TODO: NOT YET DOCUMENTED. πheightβ TODO: NOT YET DOCUMENTED. πwindowβ TODO: NOT YET DOCUMENTED. πscreenβ TODO: NOT YET DOCUMENTED. π
πΈ DESCRIPTION πΈ
so like... this section is literally empty in the original. nothing. void. silence. a whole mood π³οΈβ¨
π RETURN VALUE π
It hands you back an xcb_xinerama_get_screen_size_cookie_t πͺ β and bestie, listen, errors have to be handled when you call the reply function xcb_xinerama_get_screen_size_reply.
But if you'd rather catch your errors in the event loop instead? use xcb_xinerama_get_screen_size_unchecked and vibe accordingly. check xcb-requests(3) for the deets π₯
π ERRORS π
This request does never generate any errors. not one. zero. a clean flawless slay, no notes π
π SEE ALSO π
...it's empty in the original too. we're just gonna sit with that in silence π§
π AUTHOR π
Generated from xinerama.xml. if you wanna send corrections or improvements, hit up xcb@lists.freedesktop.org π
and that's the whole page, bestie!! this one came from X Version 11, libxcb 1.17.0, and it's the xcb_xinerama_get_screen_size(3) page π«Ά go handle those cookies responsibly, mwah πβ¨
π¦ 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