Next: , Previous: , Up: Windows   [Contents][Index]


8.12 Destroying Windows

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.

Function: delete-window window
Command: delete-window window

Delete window, i.e. send a WM_DELETE_WINDOW client-message if possible, or just kill the associated X11 client if not. window may be a window object or a numeric window id.

Function: delete-window-safely window
Command: delete-window-safely window

If the application owning window supports it, send a WM_DELETE_WINDOW message to window. Otherwise just emit a beep.

Function: destroy-window window
Command: destroy-window window

Destroy window without giving the owning application any warning. window may be a window object or a numeric window id.

Function: x-kill-client window
Command: kill-client window

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 destroy-notify-hook will subsequently be invoked (see Standard Hooks).