xcb_input_grab_device_key(3)
β¨ xcb_input_grab_device_key π
okay so bestie, welcome to the xcb_input_grab_device_key page β it lives in the XCB Requests manual section, and honestly? it's giving "grab a key on a device, but make it β¨fancyβ¨". let's get into it π
πΈ NAME πΈ
xcb_input_grab_device_key β (the description slot is literally blank in the original, no cap, so we move on π«Ά)
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <xcb/xinput.h>
π¦ Request function
xcb_void_cookie_t xcb_input_grab_device_key(xcb_connection_t *conn,
xcb_window_t grab_window, uint16_t num_classes,
uint16_t modifiers, uint8_t modifier_device,
uint8_t grabbed_device, uint8_t key, uint8_t this_device_mode,
uint8_t other_device_mode, uint8_t owner_events, const
xcb_input_event_class_t *classes);
that's the whole signature, verbatim, don't touch a single character of it π₯
π REQUEST ARGUMENTS π
here's the lineup, one by one:
connβ the XCB connection to X11. your lil phone line to the server πgrab_windowβ TODO: NOT YET DOCUMENTED. πnum_classesβ TODO: NOT YET DOCUMENTED. πmodifiersβ TODO: NOT YET DOCUMENTED. πmodifier_deviceβ TODO: NOT YET DOCUMENTED. πgrabbed_deviceβ TODO: NOT YET DOCUMENTED. πkeyβ TODO: NOT YET DOCUMENTED. πthis_device_modeβ TODO: NOT YET DOCUMENTED. πother_device_modeβ TODO: NOT YET DOCUMENTED. πowner_eventsβ TODO: NOT YET DOCUMENTED. πclassesβ TODO: NOT YET DOCUMENTED. π
likeβ¦ the docs really said "no thoughts, head empty" for every single one of these π but that's the list, all of them, present and accounted for.
π DESCRIPTION π
so the original page has this section and it'sβ¦ empty. nothing. void. main character energy with zero lines π«₯ we're keeping it exactly as empty as it was, bestie.
π RETURN VALUE π
you get back an xcb_void_cookie_t. and here's the tea: any errors have to be handled over in the event loop, okay? don't come looking for them in the return value β
if you'd rather handle errors directly with xcb_request_check instead, then use xcb_input_grab_device_key_checked β that's your girl. peek at xcb-requests(3) for the details β¨
π ERRORS π
this request does never generate any errors. periodt. zero. none. iconic behaviour honestly π
π SEE ALSO π
(blank in the original β nothing referenced here, so nothing to link, we simply vibe πΈ)
π§ AUTHOR π§
generated from xinput.xml. contact xcb@lists.freedesktop.org for corrections and improvements π¬
and that's the whole page, bestie!! this one came to you straight out of the X Version 11 crew, libxcb 1.17.0 era, and yeah, xcb_input_grab_device_key(3) is the manual page we just devoured together. go grab some keys, stay hydrated, ily π«Άπ
π¦ 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