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 a Window argument does not name a defined Window. so if your window value is not naming a defined window, that's the vibe check failing 😭

🌈 SEE ALSO 🌈

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