xcb_kill_client(3)
π NAME π
xcb_kill_client β bestie, this one kills a client. Like, actually ends it.
β¨ SYNOPSIS β¨
First things first, you gotta bring in the header, no cap:
#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, aka your whole link to the server. Your main character connection, honestly.resourceβ literally any resource that belongs to the client (a Window is the classic example) and it gets used to figure out which client connection you're talking about. So it's not really about the resource itself, it's about whose it is. iykyk.
And okay, plot twist: there's a special value, XCB_KILL_ALL_TEMPORARY. When you pass that one in, the resources of all clients that have terminated in RetainTemporary (TODO) get destroyed. Yes, the original really does say (TODO) there. We don't make the rules. π
πΈ DESCRIPTION πΈ
It forces a close down of the client that created the specified resource. That's it, that's the whole thing. You point at something that client owns, and boom β that connection is getting shut down, whether it's emotionally ready or not. π
π RETURN VALUE π
You get back an xcb_void_cookie_t. Noted: it's a void cookie, so the interesting stuff isn't in the return value.
Errors (if any happen) have to be handled in the event loop. That's the vibe, that's how it works.
But if you'd rather handle errors directly with xcb_request_check, then use xcb_kill_client_checked instead. See xcb-requests(3) for the details, it's all laid out there.
π₯ ERRORS π₯
xcb_value_error_tβ the specified resource does not exist. You tried to reference something that isn't there. Iconic mistake, happens to everyone, but yeah β that's the error. π«Ά
π SEE ALSO π
π AUTHOR π
This page was generated from xproto.xml. Contact xcb@lists.freedesktop.org if you've got corrections or improvements to send their way. They want the feedback, fr fr.
π And that's a wrap on thexcb_kill_client(3)page from theXCB Requestsfamily. This lovely little manual ships with X Version 11, libxcb 1.17.0. Now go forth and kill clients responsibly, bestie. β¨π π
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms