xcb_map_window(3)
β¨ xcb_map_window β¨
okay bestie, welcome to the xcb_map_window(3) page from the XCB Requests collection π«Ά this one's short and sweet and it's literally just "make the window appear," let's get into it π
πΈ NAME πΈ
xcb_map_window β makes a window visible πβ¨
π¦ SYNOPSIS π¦
#include <xcb/xproto.h>
π Request function π
xcb_void_cookie_t xcb_map_window(xcb_connection_t *conn,
xcb_window_t window);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11, the whole lil' hotline to the server π«windowβ the window you're making visible. the one getting its main character moment π
π DESCRIPTION π
So it maps the window you hand it. Mapping = making it visible, and that's true as long as its parent is visible too. simple as that π§
but wait, there's a plot twist π
This MapWindow request gets translated into a MapRequest if a window manager is running. And then the window manager is the one deciding whether to actually map your window or not. Rude? maybe. But if you wanna bypass that whole mechanism, set the override-redirect window attribute to true π
If the window manager decides to map the window (or if literally no window manager is running at all), a MapNotify event gets generated β¨
If the window becomes viewable and no earlier contents for it are remembered, the X server tiles the window with its background. But if the window's background is undefined, then the existing screen contents are not altered, and the X server generates zero or more Expose events π
And if the window type is InputOutput, an Expose event will be generated when the window becomes visible. The normal response to an Expose event should be to repaint the window. that's the vibe, no cap π¨
β RETURN VALUE β
Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the event loop, so don't come crying to the return value, it's not carrying that info π«
If you want to handle errors directly with xcb_request_check instead, use xcb_map_window_checked. See xcb-requests(3) for details π
π ERRORS π
xcb_match_error_tβ the specified window does not exist. it's giving ghosted π» the window you're looking for is not there bestie
π SEE ALSO π
xcb-requests(3), xcb_expose_event_t(3), xcb_map_notify_event_t(3), xcb_unmap_window(3)
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements π«Ά
and that's the whole page, bestie π this was X Version 11, libxcb 1.17.0, xcb_map_window(3) β slay, go map a window, you got this πβ¨
π¦ 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