xcb_input_xi_...e_grab_device(3)
π NAME π
xcb_input_xi_passive_grab_device β bestie this one is just a name, there's literally no description here, not a single crumb π
(also hi, this is a page from the XCB Requests corner of the libxcb universe, iykyk π¦)
β¨ SYNOPSIS β¨
First things first, you gotta invite the header in:
#include <xcb/xinput.h>
π Request function
xcb_input_xi_passive_grab_device_cookie_t
xcb_input_xi_passive_grab_device(xcb_connection_t *conn,
xcb_timestamp_t time, xcb_window_t grab_window,
xcb_cursor_t cursor, uint32_t detail,
xcb_input_device_id_t deviceid, uint16_t num_modifiers,
uint16_t mask_len, uint8_t grab_type, uint8_t grab_mode,
uint8_t paired_device_mode, uint8_t owner_events, const
uint32_t *mask, const uint32_t *modifiers);
π¦ Reply datastructure
typedef struct xcb_input_xi_passive_grab_device_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t num_modifiers;
uint8_t pad1[22];
} xcb_input_xi_passive_grab_device_reply_t;
πΈ Reply function
xcb_input_xi_passive_grab_device_reply_t
*xcb_input_xi_passive_grab_device_reply(xcb_connection_t *conn,
xcb_input_xi_passive_grab_device_cookie_t cookie,
xcb_generic_error_t **e);
β Reply accessors
xcb_input_grab_modifier_info_t
*xcb_input_xi_passive_grab_device_modifiers(const
xcb_input_xi_passive_grab_device_request_t *reply);
int xcb_input_xi_passive_grab_device_modifiers_length(const
xcb_input_xi_passive_grab_device_reply_t *reply);
xcb_input_grab_modifier_info_iterator_t
xcb_input_xi_passive_grab_device_modifiers_iterator(const
xcb_input_xi_passive_grab_device_reply_t *reply);
π REQUEST ARGUMENTS π
okay so these are the things you hand over to the request, and ngl most of them are giving "we'll get to it later" energy:
connβ the XCB connection to X11. your lil hotline to the server, periodt.timeβ TODO: NOT YET DOCUMENTED. (not me, bestie, the docs said that)grab_windowβ TODO: NOT YET DOCUMENTED.cursorβ TODO: NOT YET DOCUMENTED.detailβ TODO: NOT YET DOCUMENTED.deviceidβ TODO: NOT YET DOCUMENTED.num_modifiersβ TODO: NOT YET DOCUMENTED.mask_lenβ TODO: NOT YET DOCUMENTED.grab_typeβ TODO: NOT YET DOCUMENTED.grab_modeβ TODO: NOT YET DOCUMENTED.paired_device_modeβ TODO: NOT YET DOCUMENTED.owner_eventsβ TODO: NOT YET DOCUMENTED.maskβ TODO: NOT YET DOCUMENTED.modifiersβ TODO: NOT YET DOCUMENTED.
bestie the whole argument list is TODO, this is the manpage equivalent of a group chat where everyone left you on read π
π REPLY FIELDS π
what the server sends back to you, and it's a whole vibe check:
response_typeβ the type of this reply, in this caseXCB_INPUT_XI_PASSIVE_GRAB_DEVICE. this field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. it's the little name tag at the party πsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words (a word is 4 bytes). math girlies stay winning.num_modifiersβ TODO: NOT YET DOCUMENTED.
π«Ά DESCRIPTION π«Ά
literally nothing here. the original page has the heading and thenβ¦ silence. iconic of it, honestly. the void said no thoughts head empty β¨
π₯ RETURN VALUE π₯
Returns an xcb_input_xi_passive_grab_device_cookie_t. Errors have to be handled when calling the reply function xcb_input_xi_passive_grab_device_reply.
If you want to handle errors in the event loop instead, use xcb_input_xi_passive_grab_device_unchecked. See xcb-requests(3) for details.
cookie first, consequences later. that's the XCB way, no cap π
π ERRORS π
This request does never generate any errors.
zero errors, zero drama, she's unbothered and thriving π
π SEE ALSO π
nothing listed here in the original either. the see-also section is giving empty plate at the function π
π§ AUTHOR π§
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie!! π this was brought to you by X Version 11 and libxcb 1.17.0, mwah, go forth and grab passively πβ¨
π¦ 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