xcb_input_xi_grab_device(3)
π xcb_input_xi_grab_device(3) β XCB Requests
okay so bestie, welcome to the libxcb corner of the X11 universe β¨ this one is xcb_input_xi_grab_device, straight out of the XCB request gang. she grabs devices, she's mysterious, and half her docs are literally just TODO: NOT YET DOCUMENTED. we love an unfinished icon π
πΈ NAME πΈ
xcb_input_xi_grab_device β
bestie the description here is literally blank in the original. not me leaving it empty. it's giving "author said no thoughts head empty" π
β¨ SYNOPSIS β¨
#include <xcb/xinput.h>
π Request function
xcb_input_xi_grab_device_cookie_t
xcb_input_xi_grab_device(xcb_connection_t *conn,
xcb_window_t window, xcb_timestamp_t time, xcb_cursor_t cursor,
xcb_input_device_id_t deviceid, uint8_t mode,
uint8_t paired_device_mode, uint8_t owner_events,
uint16_t mask_len, const uint32_t *mask);
π¦ Reply datastructure
typedef struct xcb_input_xi_grab_device_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t status;
uint8_t pad1[23];
} xcb_input_xi_grab_device_reply_t;
π Reply function
xcb_input_xi_grab_device_reply_t
*xcb_input_xi_grab_device_reply(xcb_connection_t *conn,
xcb_input_xi_grab_device_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. she's the whole reason you're here, the main character, the plug πwindowβ TODO: NOT YET DOCUMENTED. yep. that's it. that's the whole description πtimeβ TODO: NOT YET DOCUMENTED.cursorβ TODO: NOT YET DOCUMENTED.deviceidβ TODO: NOT YET DOCUMENTED.modeβ TODO: NOT YET DOCUMENTED.paired_device_modeβ TODO: NOT YET DOCUMENTED.owner_eventsβ TODO: NOT YET DOCUMENTED.mask_lenβ TODO: NOT YET DOCUMENTED.maskβ TODO: NOT YET DOCUMENTED.
not the entire argument list being one big "we'll get to it" π« no cap, that's genuinely all the original says. respect the honesty I guess.
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_INPUT_XI_GRAB_DEVICE. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other like a lil name tag π·οΈsequenceβ the sequence number of the last request the X11 server processed. her receipts, basically π§Ύlengthβ how long the reply is, measured in words. and reminder: a word is 4 bytes, bestie, don't forget πstatusβ TODO: NOT YET DOCUMENTED.
π§ DESCRIPTION π§
okay so this section is empty in the original. nothing. void. silence. the vibe check came back blank π³οΈβ¨
π RETURN VALUE π
she hands you back an xcb_input_xi_grab_device_cookie_t πͺ and listen β errors have to be handled when you call the reply function xcb_input_xi_grab_device_reply.
but if you'd rather catch those errors in the event loop instead, use xcb_input_xi_grab_device_unchecked. see xcb-requests(3) for the deets π
π ERRORS π
this request does never generate any errors. not one. zero. flawless behaviour, she simply doesn't miss π
π₯ SEE ALSO π₯
literally nothing listed here in the original. the section exists, the contents said "no thoughts" π
β AUTHOR β
generated from xinput.xml. contact xcb@lists.freedesktop.org for corrections and improvements π
and that's the whole page, bestie π«Ά go forth and grab those devices, and remember β when the docs say TODO: NOT YET DOCUMENTED, you're not confused, the docs are just under construction π§π
X Version 11 Β· libxcb 1.17.0 Β· xcb_input_xi_grab_device(3) β mwah, that's a wrap, ily, bye πβ¨
π¦ 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