10.13.3 SelectionClear Events

The X server reports SelectionClear events to the client losing ownership of a selection. The X server generates this event type when another client asserts ownership of the selection by calling XSetSelectionOwner().
X サーバーは、セレクション(selection)の所有権(ownership)を 失ったクライアントに、 SelectionClearイベントを通知する。 X サーバーは、他のクライアントが XSetSelectionOwnerを呼ぶ事でセレクション(selection)の所有権(ownership)を要求(assert) する時は必ずこのイベント型(type)を発生する。

The structure for this event type contains:
このイベントのための構造体を以下に示す:


typedef struct {
	int type;		/* SelectionClear */
	unsigned long serial;	/* # of last request processed by server */
	Bool send_event;	/* true if this came from a SendEvent request */
	Display *display;	/* Display the event was read from */
	Window window;
	Atom selection;
	Time time;
} XSelectionClearEvent;

The selection member is set to the selection atom. The time member is set to the last change time recorded for the selection. The window member is the window that was specified by the current owner (the owner losing the selection) in its XSetSelectionOwner() call.
selection メンバーはセレクション(selection)のアトム(atom)に設定される。 time メンバーはセレクション(selection)に記録されている最終変更時間が 設定される。 window メンバーは、現在の所有者(セレクション(selection)を失っている 所有者(owner))が XSetSelectionOwnerで指定したウィンドウに設定される。

Next: SelectionRequest Events

Christophe Tronche, ch.tronche@computer.org