XCB_COMPOSITE_UNREDIRECT_WINDOW_CHECKED(3)
π xcb_composite_unredirect_window π
okay bestie, welcome to the xcb_composite_unredirect_window page from the XCB Requests manual π this is your girl's guide to telling X11 "okay we're DONE with that whole redirection thing, put it back" π
β¨ NAME β¨
xcb_composite_unredirect_window β terminate redirection of the specified window. that's it. that's the whole job. un-redirect. un-do. reverse. slay π¦
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <xcb/composite.h>
π Request function
xcb_void_cookie_t
xcb_composite_unredirect_window(xcb_connection_t *conn,
xcb_window_t window, uint8_t update);
like, look at that signature. gorgeous. iconic. three lil arguments and she's done π«Ά
β¨ REQUEST ARGUMENTS β¨
connβ your XCB connection to X11. the whole line of communication to the X server, your main character honestly πwindowβ the window you're terminating redirection of. heads up though: it must have been redirected by the current client, or a Value error results. so like, don't try to un-redirect somebody else's window, that's not your business, that's not your era πupdateβ the update type that was passed toRedirectWindows. and if this doesn't match the update type you requested previously? yeah, Value error again. they gotta match, no cap β
β¨ DESCRIPTION β¨
redirection of the specified window will be terminated. boom. done. closed. that window is free now, she's released, she's living her unredirected truth β¨
π¨ BUT β this cannot be used if the window was redirected with RedirectSubwindows. like literally cannot. don't even try it. different vibe entirely, wrong tool, wrong girl π
β¨ RETURN VALUE β¨
you get back an xcb_void_cookie_t β a lil void cookie, cute right? πͺ and any errors (if there even are any) have to be handled over in the event loop, not here.
if you'd rather handle errors directly with xcb_request_check instead, then use xcb_composite_unredirect_window_checked β she's the checked version, she'll tell you what's wrong. see xcb-requests(3) for the deets πΈ
β¨ ERRORS β¨
this request does never generate any errors. never. none. zero. not a single one. π so if you were bracing for drama, there is none. she's a clean queen π
β¨ SEE ALSO β¨
xcb-requests(3)β go read it bestie, it's important, iykyk π
β¨ AUTHOR β¨
generated from composite.xml. contact xcb@lists.freedesktop.org for corrections and improvements β like if something's wrong, tell them, not me, i'm just the messenger π§
okay that's the whole page, you ate that π and before you go β this lil beauty comes to you from X Version 11, libxcb 1.17.0, courtesy of the XCB Requests crew. go unredirect something responsibly, love u, bye ππ
π¦ 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