---
name: "xcb_change_save_set"
section: "3"
platform: "linux"
package: "libxcb"
version: "1.17.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/xcb_change_save_set"
---

# xcb\_change\_save\_set(3)

Changes a client's save set

## NAME

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

## SYNOPSIS

**#include \<xcb/xproto.h\>**

### Request function

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

## REQUEST ARGUMENTS

- *conn*

  The XCB connection to X11.

- *mode*

  One of the following values:

  - *XCB\_SET\_MODE\_INSERT*

    TODO: NOT YET DOCUMENTED.

  - *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*

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

## 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

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)](/xcb-requests/3.md)** for details.

## ERRORS

- *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*

  You specified an invalid mode.

- *xcb\_window\_error\_t*

  The specified window does not exist.

## SEE ALSO

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

## AUTHOR

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