xcb\_input\_grab\_device\_button(3) XCB Requests xcb\_input\_grab\_device\_button(3)

# [NAME](#NAME)

xcb\_input\_grab\_device\_button -

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;xcb/xinput.h&gt;**

## [Request function](#Request_function)

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](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*grab\_window*](#grab_window)

TODO: NOT YET DOCUMENTED.

[*grabbed\_device*](#grabbed_device)

TODO: NOT YET DOCUMENTED.

[*modifier\_device*](#modifier_device)

TODO: NOT YET DOCUMENTED.

[*num\_classes*](#num_classes)

TODO: NOT YET DOCUMENTED.

[*modifiers*](#modifiers)

TODO: NOT YET DOCUMENTED.

[*this\_device\_mode*](#this_device_mode)

TODO: NOT YET DOCUMENTED.

[*other\_device\_mode*](#other_device_mode)

TODO: NOT YET DOCUMENTED.

[*button*](#button)

TODO: NOT YET DOCUMENTED.

[*owner\_events*](#owner_events)

TODO: NOT YET DOCUMENTED.

[*classes*](#classes)

TODO: NOT YET DOCUMENTED.

# [DESCRIPTION](#DESCRIPTION)

# [RETURN VALUE](#RETURN_VALUE)

Returns an *xcb\_void\_cookie\_t*. Errors (if any) have to be handled in the event loop.

If you want to handle errors directly with *xcb\_request\_check* instead, use *xcb\_input\_grab\_device\_button\_checked*. See [**xcb-requests(3)**](/man/os/libxcb/xcb-requests.3) for details.

# [ERRORS](#ERRORS)

This request does never generate any errors.

# [SEE ALSO](#SEE_ALSO)

# [AUTHOR](#AUTHOR)

Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.

libxcb 1.17.0 X Version 11

---

Document: xcb_input_grab_device_button_checked(3) from libxcb 1.17.0-r19 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxcb.git
