Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xselectinput(3x11) [xfree86 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)

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)
Man Page

8 More Discussions You Might Find Interesting

1. Programming

Network Programming in Unix

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)
Discussion started by: powermind
2 Replies

2. IP Networking

counting the packets

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)
Discussion started by: damn_bkb
2 Replies

3. Programming

Constructing a server daemon / questions on handling clients

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)
Discussion started by: dragonfly
2 Replies

4. Programming

Problems with select

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)
Discussion started by: Corona688
2 Replies

5. Programming

Help with C programming

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)
Discussion started by: omega666
4 Replies

6. What is on Your Mind?

Cricket Anyone?

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)
Discussion started by: ni2
0 Replies

7. Hardware

Anyone using Sparc T4-2?

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)
Discussion started by: TommyG
0 Replies

8. UNIX for Dummies Questions & Answers

Where to start

I am new online/internet,I am very much interested in programming.your help will be highly Thankful and Appreciated. (3 Replies)
Discussion started by: THELORDISGOOD
3 Replies