XUnmapWindow(3)
πΈ NAME πΈ
okay so bestie, welcome to the XUnmapWindow(3) page from XLIB FUNCTIONS β¨ this is the one about unmap windows, covering XUnmapWindow, XUnmapSubwindows, and the unmap windows girlies π
no cap.
π SYNTAX π
int XUnmapWindow(Display *display, Window w);
int XUnmapSubwindows(Display *display, Window w);
π ARGUMENTS π
displayβ specifies the connection to the X server. literally the X server connection info π«Άwβ specifies the window. the window in question, periodt πͺ
π¦ DESCRIPTION π¦
okay so XUnmapWindow unmaps the specified window and causes the X server to generate an UnmapNotify event. if the specified window is already unmapped, XUnmapWindow has no effect β it's lowkey a no-op in that case, bestie. normal exposure processing on formerly obscured windows is performed. any child window will no longer be visible until another map call is made on the parent. in other words, the subwindows are still mapped but are not visible until the parent is mapped. unmapping a window will generate Expose events on windows that were formerly obscured by it. XUnmapWindow can generate a BadWindow error π
the XUnmapSubwindows function unmaps all subwindows for the specified window in bottom-to-top stacking order. it causes the X server to generate an UnmapNotify event on each subwindow and Expose events on formerly obscured windows. using this function is much more efficient than unmapping multiple windows one at a time because the server needs to perform much of the work only once, for all of the windows, rather than for each window. highkey iconic server efficiency, fr fr π₯ XUnmapSubwindows can generate a BadWindow error too.
π DIAGNOSTICS π
BadWindowβ a value for aWindowargument does not name a definedWindow. so if your window value is not naming a defined window, that's the vibe check failing π
π SEE ALSO π
XChangeWindowAttributes(3)XConfigureWindow(3)XCreateWindow(3)XDestroyWindow(3)XMapWindow(3)XRaiseWindow(3)Xlib - C Language X Interface
okay that's the whole page, bestie β catch you on the flip side π«Ά this glow-up is from X Version 11, libX11 1.8.14, and the page title is XUnmapWindow(3) β¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms