10.11.4 ResizeRequest Events

The X server can report ResizeRequest events to clients wanting information about another client's attempts to change the size of a window. The X server generates this event whenever some other client attempts to change the size of the specified window by calling XConfigureWindow(), XResizeWindow(), or XMoveResizeWindow().
X サーバーは他のクライアントがウインドウのサイズを変更しようとしていると言う情報を要求するクライアントに ResizeRequest イベントを通知する。 X サーバーは他のクライアントが XConfigureWindow(), XResizeWindow(), XMoveResizeWindow() XConfigureWindowXResizeWindowXMoveResizeWindow のいずれかを呼ぶことにより特定のウインドウのサイズを変更しようとする時は、 必ずこのイベントを発生する。

To receive ResizeRequest events, set the ResizeRedirect bit in the event-mask attribute of the window. Any attempts to change the size by other clients are then redirected.
ResizeRequest イベントを受け取るには、 ウインドウの イベントマスク 属性の ResizeRedirect ビットを設定する。 他のクライアントによるサイズを変更しようとする何らかの試みは その時にリダイレクトされる。

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


typedef struct {
	int type;	/* ResizeRequest */
	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;
	int width, height;
} XResizeRequestEvent;

The window member is set to the window whose size another client attempted to change. The width and height members are set to the inside size of the window, excluding the border.
window メンバーにはサイズを他のクライアントが変えるように試みたウインドウが設定される。 width および height メンバーにはウインドウの内側のサイズが設定される。 ボーダーは含まれない。

Next: Colormap State Change Events

Christophe Tronche, ch.tronche@computer.org