---
name: "xcb_kill_client"
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_kill_client"
---

# xcb\_kill\_client(3)

kills a client

## NAME

xcb\_kill\_client - kills a client

## SYNOPSIS

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

### Request function

xcb\_void\_cookie\_t **xcb\_kill\_client**(xcb\_connection\_t \**conn*, uint32\_t *resource*);\

## REQUEST ARGUMENTS

- *conn*

  The XCB connection to X11.

- *resource*

  Any resource belonging to the client (for example a Window), used to identify the client connection.

  The special value of *XCB\_KILL\_ALL\_TEMPORARY*, the resources of all clients that have terminated in *RetainTemporary* (TODO) are destroyed.

## DESCRIPTION

Forces a close down of the client that created the specified *resource*.

## 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\_kill\_client\_checked*. See **[xcb-requests(3)](/xcb-requests/3.md)** for details.

## ERRORS

- *xcb\_value\_error\_t*

  The specified *resource* does not exist.

## SEE ALSO

[**xcb-requests**(3)](/xcb-requests/3.md), [**xkill**(1)](/xkill/1.md)

## AUTHOR

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