Name

DestroyNotify — (generated event).

When Generated

A DestroyNotify event reports that a window has been destroyed.

Select With

To receive this event type on children of a window, specify the parent window ID and pass SubstructureNotifyMask as part of the event_mask argument to XSelectInput. This event type cannot be selected with StructureNotifyMask.

XEvent Structure Name

typedef union _XEvent {
   ...
   XDestroyWindowEvent xdestroywindow;
   ...
} XEvent;

Event Structure

typedef struct {
   int type;
   unsigned long serial;     /* # of last request processed by server */
   Bool send_event;          /* True if this came from SendEvent request */
   Display *display;         /* Display the event was read from */
   Window event;
   Window window;
} XDestroyWindowEvent;

Event Structure Members

event 

The window that selected the event.

window 

The window that was destroyed.