xcb_x_print_p...nput_selected(3)
π NAME π
xcb_x_print_print_input_selected β okay so bestie, this is the request that tells the X print server which input you've selected, and it literally has no description text in the original docs. We're working with what we've got. π«Ά
β¨ SYNOPSIS β¨
First things first, you gotta pull in the header, no cap:
#include <xcb/xprint.h>
π Request function
xcb_x_print_print_input_selected_cookie_t
xcb_x_print_print_input_selected(xcb_connection_t *conn,
xcb_x_print_pcontext_t context);
π¦ Reply datastructure
This is the lil struct that comes back at you:
typedef struct xcb_x_print_print_input_selected_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t event_mask;
uint32_t all_events_mask;
} xcb_x_print_print_input_selected_reply_t;
πΈ Reply function
xcb_x_print_print_input_selected_reply_t
*xcb_x_print_print_input_selected_reply(xcb_connection_t *conn,
xcb_x_print_print_input_selected_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. Your whole little line to the server, basically. πcontextβ TODO: NOT YET DOCUMENTED. Yeah bestie, they left us on read with this one. π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this specific case it'sXCB_X_PRINT_PRINT_INPUT_SELECTED. This field also lives inside thexcb_generic_reply_t, so you can use it to tell your replies apart from each other when they're all piled up. So useful. βsequenceβ the sequence number of the last request processed by the X11 server. Receipts, fr fr. π§Ύlengthβ the length of the reply, measured in words. And just so we're clear: a word is 4 bytes. Not a vibe, a byte count. β¨event_maskβ TODO: NOT YET DOCUMENTED. πall_events_maskβ TODO: NOT YET DOCUMENTED. π
π DESCRIPTION π
Genuinely nothing here. The original page leaves this section completely empty. Not me giving you a blank section, but also not me inventing lore that isn't in the docs. π
π RETURN VALUE π
It hands you back an xcb_x_print_print_input_selected_cookie_t. Now listen β errors have to be handled when you call the reply function, xcb_x_print_print_input_selected_reply. That's where they show up. Don't skip it. π
But if you'd rather deal with your errors inside the event loop instead, use xcb_x_print_print_input_selected_unchecked. The details live in xcb-requests(3), go read it, it's giving required reading. π
π₯ ERRORS π₯
This request never generates any errors. Not one. Zero. Iconic behaviour honestly. β¨
π SEE ALSO π
Empty in the original, bestie. Nothing to see here. π¦
π AUTHOR π
Generated from xprint.xml. If you wanna send corrections or improvements, hit up xcb@lists.freedesktop.org. They're the ones who made this. π«Ά
That's the whole page, bestie β every flag, field, and footnote accounted for, no skips, no invented lore. This one came from X Version 11, libxcb 1.17.0, and it's the xcb_x_print_p...nput_selected(3) page from XCB Requests. Slay, go forth and select your input. π
πβ¨
π¦ 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