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.6.0 XSelectInput(3)
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.3.2 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)
Tim Bass
08-20-2008 10:47 PM
For interested readers, here are the event processing definitions we provided to the (future) EPTS working group on September 20, 2006, coordinated (edited)*by David Luckham and Roy Schulte;
adaptive process management (n.) an element of resource and business... (0 Replies)
Hi guys i am facing this issue while opening new xterm window.please help me out.
Xlib: connection to "delop125ld:0.0" refused by server
Xlib: Maximum number of clients reached
xterm Xt error: Can't open display: delop125ld:0.0
thanks (1 Reply)
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)
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)