x11rb::protocol::xproto

Function destroy_window

Source
pub fn destroy_window<Conn>(
    conn: &Conn,
    window: Window,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Destroys a window.

Destroys the specified window and all of its subwindows. A DestroyNotify event is generated for each destroyed window (a DestroyNotify event is first generated for any given window’s inferiors). If the window was mapped, it will be automatically unmapped before destroying.

Calling DestroyWindow on the root window will do nothing.

§Fields

  • window - The window to destroy.

§Errors

  • Window - The specified window does not exist.

§See

  • DestroyNotify: event
  • MapWindow: request
  • UnmapWindow: request