xcb\_change\_save\_set(3) XCB Requests xcb\_change\_save\_set(3)

# [NAME](#NAME)

xcb\_change\_save\_set - Changes a client's save set

# [SYNOPSIS](#SYNOPSIS)

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

## [Request function](#Request_function)

xcb\_void\_cookie\_t **xcb\_change\_save\_set**(xcb\_connection\_t \**conn*, uint8\_t *mode*, xcb\_window\_t *window*);

# [REQUEST ARGUMENTS](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*mode*](#mode)

One of the following values:

[*XCB\_SET\_MODE\_INSERT*](#XCB_SET_MODE_INSERT)

TODO: NOT YET DOCUMENTED.

[*XCB\_SET\_MODE\_DELETE*](#XCB_SET_MODE_DELETE)

TODO: NOT YET DOCUMENTED.

Insert to add the specified window to the save set or Delete to delete it from the save set.

[*window*](#window)

The window to add or delete to/from your save set.

# [DESCRIPTION](#DESCRIPTION)

TODO: explain what the save set is for.

This function either adds or removes the specified window to the client's (your application's) save set.

# [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\_change\_save\_set\_checked*. See [**xcb-requests(3)**](/man/os/libxcb/xcb-requests.3) for details.

# [ERRORS](#ERRORS)

[*xcb\_match\_error\_t*](#xcb_match_error_t)

You created the specified window. This does not make sense, you can only add windows created by other clients to your save set.

[*xcb\_value\_error\_t*](#xcb_value_error_t)

You specified an invalid mode.

[*xcb\_window\_error\_t*](#xcb_window_error_t)

The specified window does not exist.

# [SEE ALSO](#SEE_ALSO)

[**xcb-requests**(3)](/man/os/libxcb/xcb-requests.3), [**xcb\_reparent\_window**(3)](/man/os/libxcb/xcb_reparent_window.3)

# [AUTHOR](#AUTHOR)

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

libxcb 1.17.0 X Version 11

---

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