There are several methods through which X11 client windows may be removed from the display. These differ in the level “politeness” they show the window and its owning application.
Delete window, i.e. send a
if possible, or just kill the associated X11 client if not.
window may be a window object or a numeric window id.
If the application owning window supports it, send a
WM_DELETE_WINDOW message to window. Otherwise just emit a
Destroy window without giving the owning application any warning. window may be a window object or a numeric window id.
Force a close down of the X11 client that created the window specified by window (a window object, or numeric id).
When a managed window is destroyed, the
subsequently be invoked (see Standard Hooks).