xcb_unmap_window(3)
β¨ xcb_unmap_window β the XCB Requests page, bestie edition β¨
okay so this is xcb_unmap_window(3), from the XCB Requests manual. it's the little guy you call when you want a window to justβ¦ β¨disappearβ¨ (visually, anyway). let's get into it π
πΈ NAME πΈ
xcb_unmap_window β makes a window invisible π«₯
π SYNOPSIS π
#include <xcb/xproto.h>
π Request function π
xcb_void_cookie_t xcb_unmap_window(xcb_connection_t *conn,
xcb_window_t window);
π¦ REQUEST ARGUMENTS π¦
connβ your XCB connection to X11. the whole vibe pipeline, the link between you and the server π«Άwindowβ the window you're about to make invisible. say bye bestie π
π DESCRIPTION π
Unmaps the specified window. which is a fancy way of saying: it makes that window invisible, and all of its child windows too. the whole little family goes ghost mode π«₯β¨
and because nothing in X ever happens quietly, unmapping a window leads to the UnmapNotify event being generated. also? Expose events get generated for formerly obscured windows β so everything that was hiding behind your window is about to wake up and be like "oh we're visible now?!" π
π RETURN VALUE π
Returns an xcb_void_cookie_t. and ngl, that's the tea: errors (if any) have to be handled in the event loop, not right here. the cookie is just the receipt, the drama arrives later π¬
if you'd rather handle errors directly with xcb_request_check instead, use xcb_unmap_window_checked. see xcb-requests(3) for details. iykyk π
π ERRORS π
xcb_window_error_tβ the specified window does not exist. like, you tried to unmap a window that isn't there. nothing to unmute, bestie, it's giving ghost π«
π SEE ALSO π
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if you spot something off, you know who to email fr fr π
and that's the whole page, no cap. this came to you from X Version 11, libxcb 1.17.0, dated as ever and looking iconic π β¨ thanks for reading, mwah π«Ά
π¦ 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