XSelectInput(3X11) XLIB FUNCTIONS XSelectInput(3X11)NAME
XSelectInput - select input events
SYNTAX
XSelectInput(display, w, event_mask)
Display *display;
Window w;
long event_mask;
ARGUMENTS
display Specifies the connection to the X server.
event_mask
Specifies the event mask.
w Specifies the window whose events you are interested in.
DESCRIPTION
The 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 propa-
gates 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:
o 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.
o Only one client at a time can select CirculateRequest, ConfigureRequest, or MapRequest events, which are associated with the event
mask SubstructureRedirectMask.
o Only one client at a time can select a ResizeRequest event, which is associated with the event mask ResizeRedirectMask.
o Only one client at a time can select a ButtonPress event, which is associated with the event mask ButtonPressMask.
The server reports the event to all interested clients.
XSelectInput can generate a BadWindow error.
DIAGNOSTICS
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
Xlib - C Language X Interface
X Version 11 Release 6.6 XSelectInput(3X11)
Check Out this Related Man Page
XSelectInput(3) XLIB FUNCTIONS XSelectInput(3)NAME
XSelectInput - select input events
SYNTAX
int XSelectInput(Display *display, Window w, long event_mask);
ARGUMENTS
display Specifies the connection to the X server.
event_mask
Specifies the event mask.
w Specifies the window whose events you are interested in.
DESCRIPTION
The 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 propa-
gates 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:
o 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.
o Only one client at a time can select CirculateRequest, ConfigureRequest, or MapRequest events, which are associated with the event
mask SubstructureRedirectMask.
o Only one client at a time can select a ResizeRequest event, which is associated with the event mask ResizeRedirectMask.
o Only one client at a time can select a ButtonPress event, which is associated with the event mask ButtonPressMask.
The server reports the event to all interested clients.
XSelectInput can generate a BadWindow error.
DIAGNOSTICS
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
Xlib - C Language X Interface
X Version 11 libX11 1.2.1 XSelectInput(3)
Good day everyone,
Please help if you are interested in.
I need to do a chat client-server program.
Does anyone know where I can get references or sample programs?
Thank you very much for your time
Eric (2 Replies)
there are a number of clients connected to a server.... how can i count that each clients recieve ...? how do i moniter the activity of the client..? (2 Replies)
Hi All,
I'm interested in the best way to serve multiple clients from a server process.
Now, our server is going to serve data on a custom protocol and it is going to get / process that data from a number of possible back-ends including files (text or xml) and MySQL/some other database.... (2 Replies)
Is select only supposed to report state changes on an FD's, state, whether or not it had pending input available in the first place? I've got a situation where select() repeatedly reports no FD's ready for stdin when there's lots of data available. And if it only reports changes, how is this... (2 Replies)
for a question like this
Assume you have a server with two clients and two child processes. The server retrieves data from the
children through a pipe (one each) and writes data to the clients through a socket (one each). child1
produces data for client1, and child2 for client2.
Write a C... (4 Replies)
Hi,
I was thinking of adding some Cricket Events. Just wanted to see if anyone would be interested in placing bits on Cricket Matches.
If you are please share. I would like to know
1. What league or
2. Which matches or
3. Anything else you would place bits on. (0 Replies)
Greetings,
We are interested in the sparc T4-2, but have not seen too many people using it. Has anyone had any experience with it? Please let me know if you have. We are testing out the server with Oracle applications and wanted to see how it could handle 1000 or so sessions.
Thanks,
Tom (0 Replies)