1. NAME

XSelectInput - select input events

2. SYNTAX

int XSelectInput(Display *display, Window w, long event_mask);

3. ARGUMENTS

display 1i Specifies the connection to the X server.

event_mask 1i Specifies the event mask.

w 1i Specifies the window \*(Wi.

4. DESCRIPTION

The .ZN XSelectInput function requests that the X server report the events associated with the specified event mask. Initially, X will not report any of these events. Events are reported relative to a window. If a window is not interested in a device event, it usually propagates to the closest ancestor that is interested, unless the do_not_propagate mask prohibits it.

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:

5 Multiple clients can select events on the same window because their event masks are disjoint. When the X server generates an event, it reports it to all interested clients.

5 Only one client at a time can select .ZN CirculateRequest , .ZN ConfigureRequest , or .ZN MapRequest events, which are associated with the event mask .ZN SubstructureRedirectMask .

5 Only one client at a time can select a .ZN ResizeRequest event, which is associated with the event mask .ZN ResizeRedirectMask .

5 Only one client at a time can select a .ZN ButtonPress event, which is associated with the event mask .ZN ButtonPressMask .

The server reports the event to all interested clients.

.ZN XSelectInput can generate a .ZN BadWindow error.

5. DIAGNOSTICS

  • .ZN BadWindow
     A value for a Window argument does not name a defined Window.

6. SEE ALSO

\*(xL