xcb_input_grab_device_button(3)
π
xcb_input_grab_device_button β from the XCB Requests manual, section 3
okay bestie, sit down, hydrate, and let's talk about grabbing buttons on a device β¨
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <xcb/xinput.h>
and here's the request function, look at her go:
xcb_void_cookie_t xcb_input_grab_device_button(xcb_connection_t *conn,
xcb_window_t grab_window, uint8_t grabbed_device,
uint8_t modifier_device, uint16_t num_classes,
uint16_t modifiers, uint8_t this_device_mode,
uint8_t other_device_mode, uint8_t button, uint8_t owner_events,
const xcb_input_event_class_t *classes);
π REQUEST ARGUMENTS π
okay so every single one of these is literally marked TODO: NOT YET DOCUMENTED. in the original and i am not about to make stuff up, so here's the full roster, no cap:
connβ the XCB connection to X11. your lil link to the server, the main character of the whole operation π«Άgrab_windowβ TODO: NOT YET DOCUMENTED.grabbed_deviceβ TODO: NOT YET DOCUMENTED.modifier_deviceβ TODO: NOT YET DOCUMENTED.num_classesβ TODO: NOT YET DOCUMENTED.modifiersβ TODO: NOT YET DOCUMENTED.this_device_modeβ TODO: NOT YET DOCUMENTED.other_device_modeβ TODO: NOT YET DOCUMENTED.buttonβ TODO: NOT YET DOCUMENTED.owner_eventsβ TODO: NOT YET DOCUMENTED.classesβ TODO: NOT YET DOCUMENTED.
bestie i know, i know, it's giving "the docs simply did not show up to class today" π but the vibe rule is sacred: every detail stays, and "NOT YET DOCUMENTED" is the detail. we don't invent lore. periodt π
πΈ DESCRIPTION πΈ
(yeah. it's empty in the original. she said nothing, and honestly? iconic of her. nothing to report, no notes β¨)
π¦ RETURN VALUE π¦
you get back an xcb_void_cookie_t. and because she's void, any errors that show up have to be handled over in the event loop, okay? that's the assignment π
but wait β if you'd rather handle errors directly with xcb_request_check instead, then use xcb_input_grab_device_button_checked. she's the checked girlie. see xcb-requests(3) for the deets π
π ERRORS π
this request does never generate any errors. not one. zero. she's chill like that. π§
π SEE ALSO π
(homegirl left this one blank, so we're just vibing in the silence π)
β AUTHOR β
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. fr fr, if something's wrong, tell the humans π
and that's the whole page bestie!! π«Ά thanks for reading, mwah π β with love from the X Version 11, libxcb 1.17.0 era of the xcb_input_grab_device_button(3) page β¨π
π¦ 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