xcb\_dbe\_allocate\_back\_buffer(3) XCB Requests xcb\_dbe\_allocate\_back\_buffer(3)

# [NAME](#NAME)

xcb\_dbe\_allocate\_back\_buffer - Allocates a back buffer

# [SYNOPSIS](#SYNOPSIS)

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

## [Request function](#Request_function)

xcb\_void\_cookie\_t **xcb\_dbe\_allocate\_back\_buffer**(xcb\_connection\_t \**conn*, xcb\_window\_t *window*, xcb\_dbe\_back\_buffer\_t *buffer*, uint8\_t *swap\_action*);

# [REQUEST ARGUMENTS](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*window*](#window)

The window to which to add the back buffer.

[*buffer*](#buffer)

The buffer id to associate with the back buffer.

[*swap\_action*](#swap_action)

The swap action most likely to be used to present this back buffer. This is only a hint, and does not preclude the use of other swap actions.

# [DESCRIPTION](#DESCRIPTION)

Associates *buffer* with the back buffer of *window*. Multiple ids may be associated with the back buffer, which is created by the first allocate call and destroyed by the last deallocate.

# [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\_dbe\_allocate\_back\_buffer\_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)

[**xcb-requests**(3)](/man/os/libxcb/xcb-requests.3)

# [AUTHOR](#AUTHOR)

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

libxcb 1.17.0 X Version 11

---

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