xcb\_ungrab\_button(3) XCB Requests xcb\_ungrab\_button(3)

# [NAME](#NAME)

xcb\_ungrab\_button -

# [SYNOPSIS](#SYNOPSIS)

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

## [Request function](#Request_function)

xcb\_void\_cookie\_t **xcb\_ungrab\_button**(xcb\_connection\_t \**conn*, uint8\_t *button*, xcb\_window\_t *grab\_window*, uint16\_t *modifiers*);

# [REQUEST ARGUMENTS](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*button*](#button)

One of the following values:

[*XCB\_BUTTON\_INDEX\_ANY*](#XCB_BUTTON_INDEX_ANY)

Any of the following (or none):

[*XCB\_BUTTON\_INDEX\_1*](#XCB_BUTTON_INDEX_1)

The left mouse button.

[*XCB\_BUTTON\_INDEX\_2*](#XCB_BUTTON_INDEX_2)

The right mouse button.

[*XCB\_BUTTON\_INDEX\_3*](#XCB_BUTTON_INDEX_3)

The middle mouse button.

[*XCB\_BUTTON\_INDEX\_4*](#XCB_BUTTON_INDEX_4)

Scroll wheel. TODO: direction?

[*XCB\_BUTTON\_INDEX\_5*](#XCB_BUTTON_INDEX_5)

Scroll wheel. TODO: direction?

TODO: NOT YET DOCUMENTED.

[*grab\_window*](#grab_window)

TODO: NOT YET DOCUMENTED.

[*modifiers*](#modifiers)

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\_ungrab\_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 xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.

libxcb 1.17.0 X Version 11

---

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