XSelectInput(3X11) MIT X11R4 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 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:
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 or events, which are associated with the event mask
o Only one client at a time can select a event, which is associated with the event mask
o Only one client at a time can select a event, which is associated with the event mask
The server reports the event to all interested clients.
can generate a error.
Diagnostics
A value for a Window argument does not name a defined Window.
See Also
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XSelectInput(3X11)
Check Out this Related Man Page
XSelectInput(3X11) XLIB FUNCTIONS XSelectInput(3X11)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
XFree86 Version 4.7.0 XSelectInput(3X11)
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,
I am very interested in old unices but I'm deperate, I don't know where to get these.
I'm sure they aren't sold anymore.
I'm looking for anyone of the real AT&T or SCO System Vs.
Please tell me if you happen to know where to get them :) (0 Replies)
I have a few clients connecting to the server(which is using select()) and theyre trying to send messages to each other. How do I wait for input on stdin and at the same time I wait for data to being sent from the server? Should I use select() in my client too? How exactly though? (1 Reply)
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)
Hi guys,
I'm new to the forum so I apologize if this is in the wrong section.
I'm a senior in high school and I'm interested in getting into systems administration. I've heard the best way to get into systems administration is to volunteer at a company to help out the SA's so you can get hands... (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 Folks -
With many clients (most) going to Linux environments, I'd like to begint o develop one set of portable scripts I can use across all clients. Therefore, for my clients still on Windows, I'll need to use a tool to be able to do this.
What would you recommend to run shell on Windows?... (2 Replies)