xcb_shape_input_selected(3)
β¨ xcb_shape_input_selected β¨
okay bestie, we're doing the xcb_shape_input_selected thing from XCB Requests (that's the manual, the lib is libxcb) and honestly? it's giving "short but mysterious". let's get into it π
πΈ NAME πΈ
xcb_shape_input_selected β and that's it. that's the whole name section. the description line is literally empty, no cap. the original page left it blank so we're leaving it blank, i don't make the rules π«Ά
π¦ SYNOPSIS π¦
first things first, you gotta bring in the header:
#include <xcb/shape.h>
π Request function π
xcb_shape_input_selected_cookie_t
xcb_shape_input_selected(xcb_connection_t *conn,
xcb_window_t destination_window);
π Reply datastructure π
here's the lil struct the reply comes back in, character for character:
typedef struct xcb_shape_input_selected_reply_t {
uint8_t response_type;
uint8_t enabled;
uint16_t sequence;
uint32_t length;
} xcb_shape_input_selected_reply_t;
π Reply function π
and here's how you actually go get that reply:
xcb_shape_input_selected_reply_t
*xcb_shape_input_selected_reply(xcb_connection_t *conn,
xcb_shape_input_selected_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole hotline to the server, basically. πdestination_windowβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs just said "not yet" and moved on. iconic of them, honestly ππ
β REPLY FIELDS β
response_typeβ the type of this reply, and for this one it'sXCB_SHAPE_INPUT_SELECTED. plot twist: this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other when they're all stacked up in the group chat. πsequenceβ the sequence number of the last request the X11 server processed. the receipts, basically. π§Ύlengthβ how long the reply is, in words. and a word here is 4 bytes, so do the math, don't get caught slipping. π₯enabledβ TODO: NOT YET DOCUMENTED. again!! the docs are gatekeeping this one too. not me finding out the hard way π
π DESCRIPTION π
...nothing. literally nothing. the original section is empty. the vibes are immaculate and the information is nonexistent. moving on bestie π β¨
π RETURN VALUE π
so it hands you back an xcb_shape_input_selected_cookie_t. πͺ and here's the tea: errors have to be handled when you call the reply function, xcb_shape_input_selected_reply.
but if you'd rather deal with errors in the event loop instead, use xcb_shape_input_selected_unchecked. go peek at xcb-requests(3) for the deets on how that all works. π«Ά
π ERRORS π
this request does never generate any errors. never ever. zero. none. no drama, no errors, just vibes. β¨
π₯ SEE ALSO π₯
nothing here either. the original SEE ALSO section is empty, so we're sitting in comfortable silence together. πΈ
π AUTHOR π
generated from shape.xml. if you need corrections or improvements, contact xcb@lists.freedesktop.org β they're the ones to text. π§
and that's a wrap, bestie!! this page came from X Version 11, specifically libxcb 1.17.0, and if you ever need to find it again it's filed under xcb_shape_input_selected(3). slay, you read the whole thing, so proud of you ππ¦π
π¦ 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