XSelectInput(display, w, event_mask)
Display *display;
Window w;
long event_mask;
display | Specifies the connection to the X server. X サーバへの接続を指定する。 |
w | Specifies the window whose events you are interested in. ウィンドウを指定する。このウィンドウが受け取るイベントに注目する。 |
event_mask | Specifies the event mask. イベントマスクを指定する。 |
Setting the event-mask attribute of a window overrides any previous call
for the same window but not for other clients.
Multiple clients can select for the same events on the same window
with the following restrictions:
あるウィンドウの
イベントマスク
属性を設定すると同じウィンドウに対する以前の設定は全て上書きされるが、
他のウィンドウに対する設定は上書きされない。
以下の制限の下で同じウィンドウ上の同じイベントを複数のクライアントで受け取ることができる:
The server reports the event to all interested clients.
サーバはそのイベントに注目している全てのクライアントに通知を行う。
XSelectInput()
can generate a
BadWindow
error.
関数
XSelectInput()はエラーBadWindowを生成することがある。
BadWindow | A value for a Window argument does not name a defined Window. |