Name

SelectionClear — (generated event).

When Generated

A SelectionClear event reports to the current owner of a selection that a new owner is being defined.

Select With

This event is not selected. It is sent to the previous selection owner when another client calls XSetSelectionOwner for the same selection.

XEvent Structure Name

typedef union _XEvent {
   ...
   XSelectionClearEvent xselectionclear;
   ...
} 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 window;
   Atom selection;
   Time time;
} XSelectionClearEvent;

Event Structure Members

window 

The window that is receiving the event and losing the selection.

selection 

The selection atom specifying the selection that is changing ownership.

time 

The last-change time recorded for the selection.