~ubuntu-branches/ubuntu/natty/libxi/natty-201011191114

« back to all changes in this revision

Viewing changes to man/XAllowDeviceEvents.man

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-11-21 18:39:28 UTC
  • mfrom: (1.1.10 upstream) (0.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091121183928-ek2jwqx3rmhv3zjz
Tags: 2:1.3-1
* Bump Standards-Version to 3.8.3.
* Add build-deps on xmlto and asciidoc to build the manpages.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\"
2
 
.\" $XFree86: xc/doc/man/Xi/XAllDvEv.man,v 1.2 2001/01/27 18:20:20 dawes Exp $
3
 
.\"
4
 
.\"
5
 
.\" Copyright ([\d,\s]*) by Hewlett-Packard Company, Ardent Computer, 
6
 
.\" 
7
 
.\" Permission to use, copy, modify, distribute, and sell this documentation 
8
 
.\" for any purpose and without fee is hereby granted, provided that the above
9
 
.\" copyright notice and this permission notice appear in all copies.
10
 
.\" Ardent, and Hewlett-Packard make no representations about the 
11
 
.\" suitability for any purpose of the information in this document.  It is 
12
 
.\" provided \`\`as is'' without express or implied warranty.
13
 
.\" 
14
 
.\" $Xorg: XAllDvEv.man,v 1.3 2000/08/17 19:41:55 cpqbld Exp $
15
 
.ds xL Programming With Xlib
16
 
.TH XAllowDeviceEvents __LIB_MAN_SUFFIX__ __xorgversion__ "X FUNCTIONS"
17
 
.SH NAME
 
1
'\" t
 
2
.\"     Title: xallowdeviceevents
 
3
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
 
4
.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
 
5
.\"      Date: 10/02/2009
 
6
.\"    Manual: [FIXME: manual]
 
7
.\"    Source: [FIXME: source]
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "XALLOWDEVICEEVENTS" "libmansuffix" "10/02/2009" "[FIXME: source]" "[FIXME: manual]"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * set default formatting
 
13
.\" -----------------------------------------------------------------
 
14
.\" disable hyphenation
 
15
.nh
 
16
.\" disable justification (adjust text to left margin only)
 
17
.ad l
 
18
.\" -----------------------------------------------------------------
 
19
.\" * MAIN CONTENT STARTS HERE *
 
20
.\" -----------------------------------------------------------------
 
21
.SH "NAME"
18
22
XAllowDeviceEvents \- release queued events
19
 
.SH SYNTAX
20
 
.HP
21
 
int XAllowDeviceEvents\^(\^Display *\fIdisplay\fP\^, XDevice *\fIdevice\fP\^,
22
 
int \fIevent_mode\fP\^, Time \fItime\fP\^); 
23
 
.SH ARGUMENTS
24
 
.TP 12
25
 
.I display
26
 
Specifies the connection to the X server.
27
 
.TP 12
28
 
.I device
29
 
Specifies the device from which events are to be allowed.
30
 
.TP 12
31
 
.I event_mode
32
 
Specifies the event mode.
33
 
You can pass 
34
 
\fIAsyncThisDevice\fP, 
35
 
\fISyncThisDevice\fP, 
36
 
\fIReplayThisDevice\fP, 
37
 
\fIAsyncOtherDevices\fP, 
38
 
\fISyncAll\fP,
39
 
or
40
 
\fIAsyncAll\fP.
41
 
.TP 12
42
 
.I time
43
 
Specifies the time.
44
 
You can pass either a timestamp or
45
 
\fICurrentTime\fP.
46
 
.SH DESCRIPTION
47
 
The
48
 
\fIXAllowDeviceEvents\fP
49
 
function releases some queued events if the client has caused a device 
50
 
to freeze.
51
 
It has no effect if the specified time is earlier than the last-grab
52
 
time of the most recent active grab for the client and device, 
53
 
or if the specified time is later than the current X server time.
54
 
.LP
55
 
The following describes the processing that occurs depending on what
56
 
constant you pass to the event_mode argument.
57
 
.TP 12
58
 
\fIAsyncThisDevice\fP
59
 
If the specified device is frozen by the client, event processing for that
60
 
device continues as usual.  If the device is frozen multiple times by the client
61
 
on behalf of multiple separate grabs, \fIAsyncThisDevice\fP thaws for all.
62
 
\fIAsyncThisDevice\fP has no effect if the specified device is not frozen by
63
 
the client, but the device need not be grabbed by the client.
64
 
.TP 12
65
 
\fISyncThisDevice\fP
66
 
If the specified device is frozen and actively grabbed by the client, event
67
 
processing for that device continues normally until the next key or button
68
 
event is reported to the client.  At this time, the specified device
69
 
again appears to freeze.  However, if the reported event causes the grab
70
 
to be released, the specified device does not freeze.  \fISyncThisDevice\fP
71
 
has no effect if the specified device is not frozen by the client or is not
72
 
grabbed by the client.
73
 
.TP 12
74
 
\fIReplayThisDevice\fP
75
 
If the specified device is actively grabbed by the client and is frozen as
76
 
the result of an event having been sent to the client (either from the
77
 
activation of a GrabDeviceButton or from a previous AllowDeviceEvents with
78
 
mode SyncThisDevice, but not from a GrabDevice), the grab is released and that
79
 
event is completely reprocessed.  This time, however, the request ignores
80
 
any passive grabs at or above (toward the root) that the grab-window of the
81
 
grab just released.  The request has no effect if the specified device is
82
 
not grabbed by the client or if it is not frozen as the result of an event.
83
 
.TP 12
84
 
\fIAsyncOtherDevices\fP
85
 
If the remaining devices are frozen by the client, event processing for them
86
 
continues as usual.  If the other devices are frozen multiple times by the
87
 
client on behalf of multiple grabs, \fIAsyncOtherDevices\fP "thaws" for
88
 
all.  \fIAsyncOtherDevices\fP has no effect if the devices are not frozen
89
 
by the client.
90
 
.TP 12
91
 
\fISyncAll\fP
92
 
If all devices are frozen by the client, event processing (for all devices)
93
 
continues normally until the next button or key event is reported to the
94
 
client for a grabbed device, at which time all devices again appear to freeze.
95
 
However, if the reported event causes the grab to be released, then the devices
96
 
do not freeze.  If any device is still grabbed, then a subsequent event for it
97
 
will still cause all devices to freeze.  \fISyncAll\fP has no
98
 
effect unless all devices are frozen by the client.  If any device is 
99
 
frozen twice by the client on behalf of two separate grabs, \fISyncAll\fP thaws
100
 
for both.  A subsequent freeze for \fISyncAll\fP will only
101
 
freeze each device once.
102
 
.TP 12
103
 
\fIAsyncAll\fP
104
 
If all devices are frozen by the client, event processing for all devices
105
 
continues normally.  If any device is frozen multiple times by the client
106
 
on behalf of multiple separate grabs, \fIAsyncAll\fP thaws for
107
 
all.  \fIAsyncAll\fP has no effect unless all devices are frozen by
108
 
the client.
109
 
.LP
110
 
\fIAsyncThisDevice\fP,
111
 
\fISyncThisDevice\fP,
112
 
and
113
 
\fIReplayThisDevice\fP
114
 
have no effect on the processing of events from the remaining devices.
115
 
\fIAsyncOtherDevices\fP
116
 
has no effect on the processing of events from the specified device.  When
117
 
the event_mode is
118
 
\fISyncAll\fP
119
 
or
120
 
\fIAsyncAll\fP,
121
 
the device parameter is ignored.
122
 
.LP
123
 
It is possible for several grabs of different devices by the same or
124
 
different clients to be active simultaneously.  If a device is frozen on
125
 
behalf of any grab, no event processing is performed for the device.
126
 
It is possible for a single device to be frozen because of several grabs.
127
 
In this case, the freeze must be released on behalf of each grab before
128
 
events can again be processed.
129
 
.LP
130
 
\fIXAllowDeviceEvents\fP
131
 
can generate a \fIBadDevice\fP or
132
 
\fIBadValue\fP 
133
 
error.
134
 
.SH DIAGNOSTICS
135
 
.TP 12
136
 
\fIBadDevice\fP
137
 
An invalid device was specified.  The specified device does not exist or has 
138
 
not been opened by this client via \fIXOpenInputDevice\fP.  This error may
139
 
also occur if the specified device is the X keyboard or X pointer device.
140
 
.TP 12
141
 
\fIBadValue\fP
142
 
An invalid mode was specified on the request.
 
23
.SH "SYNOPSIS"
 
24
.sp
 
25
.nf
 
26
#include <X11/extensions/XInput\&.h>
 
27
.fi
 
28
.sp
 
29
.nf
 
30
int XAllowDeviceEvents( Display *display,
 
31
                        XDevice *device,
 
32
                        int event_mode,
 
33
                        Time time);
 
34
display
 
35
       Specifies the connection to the X server\&.
 
36
.fi
 
37
.sp
 
38
.nf
 
39
device
 
40
       Specifies the device from which events are to be
 
41
       allowed\&.
 
42
.fi
 
43
.sp
 
44
.nf
 
45
event_mode
 
46
       Specifies the event mode\&.You can pass AsyncThisDevice,
 
47
       SyncThisDevice, ReplayThisDevice, AsyncOtherDevices,
 
48
       SyncAll,or AsyncAll\&.
 
49
.fi
 
50
.sp
 
51
.nf
 
52
time
 
53
       Specifies the time\&.You can pass either a timestamp or
 
54
       CurrentTime\&.
 
55
.fi
 
56
.SH "DESCRIPTION"
 
57
.sp
 
58
.if n \{\
 
59
.RS 4
 
60
.\}
 
61
.nf
 
62
The XAllowDeviceEvents function releases some queued events if
 
63
the client has caused a device to freeze\&. It has no effect if
 
64
the specified time is earlier than the last\-grab time of the
 
65
most recent active grab for the client and device, or if the
 
66
specified time is later than the current X server time\&.
 
67
.fi
 
68
.if n \{\
 
69
.RE
 
70
.\}
 
71
.sp
 
72
.if n \{\
 
73
.RS 4
 
74
.\}
 
75
.nf
 
76
The following describes the processing that occurs depending on
 
77
what constant you pass to the event_mode argument\&.
 
78
.fi
 
79
.if n \{\
 
80
.RE
 
81
.\}
 
82
.sp
 
83
.if n \{\
 
84
.RS 4
 
85
.\}
 
86
.nf
 
87
AsyncThisDevice If the specified device is frozen by the
 
88
client, event processing for that device continues as usual\&. If
 
89
the device is frozen multiple times by the client on behalf of
 
90
multiple separate grabs, AsyncThisDevice thaws for
 
91
all\&.AsyncThisDevice has no effect if the specified device is
 
92
not frozen by the client, but the device need not be grabbed by
 
93
the client\&.
 
94
.fi
 
95
.if n \{\
 
96
.RE
 
97
.\}
 
98
.sp
 
99
.if n \{\
 
100
.RS 4
 
101
.\}
 
102
.nf
 
103
SyncThisDevice If the specified device is frozen and actively
 
104
grabbed by the client, event processing for that device
 
105
continues normally until the next key or button event is
 
106
reported to the client\&. At this time, the specified device
 
107
again appears to freeze\&. However, if the reported event causes
 
108
the grab to be released, the specified device does not freeze\&.
 
109
SyncThisDevice has no effect if the specified device is not
 
110
frozen by the client or is not grabbed by the client\&.
 
111
.fi
 
112
.if n \{\
 
113
.RE
 
114
.\}
 
115
.sp
 
116
.if n \{\
 
117
.RS 4
 
118
.\}
 
119
.nf
 
120
ReplayThisDevice If the specified device is actively grabbed by
 
121
the client and is frozen as the result of an event having been
 
122
sent to the client (either from the activation of a
 
123
GrabDeviceButton or from a previous AllowDeviceEvents with mode
 
124
SyncThisDevice, but not from a GrabDevice), the grab is
 
125
released and that event is completely reprocessed\&. This time,
 
126
however, the request ignores any passive grabs at or above
 
127
(toward the root) that the grab\-window of the grab just
 
128
released\&. The request has no effect if the specified device is
 
129
not grabbed by the client or if it is not frozen as the result
 
130
of an event\&.
 
131
.fi
 
132
.if n \{\
 
133
.RE
 
134
.\}
 
135
.sp
 
136
.if n \{\
 
137
.RS 4
 
138
.\}
 
139
.nf
 
140
AsyncOtherDevices If the remaining devices are frozen by the
 
141
client, event processing for them continues as usual\&. If the
 
142
other devices are frozen multiple times by the client on behalf
 
143
of multiple grabs, AsyncOtherDevices "thaws" for all\&.
 
144
AsyncOtherDevices has no effect if the devices are not frozen
 
145
by the client\&.
 
146
.fi
 
147
.if n \{\
 
148
.RE
 
149
.\}
 
150
.sp
 
151
.if n \{\
 
152
.RS 4
 
153
.\}
 
154
.nf
 
155
SyncAll If all devices are frozen by the client, event
 
156
processing (for all devices) continues normally until the next
 
157
button or key event is reported to the client for a grabbed
 
158
device, at which time all devices again appear to freeze\&.
 
159
However, if the reported event causes the grab to be released,
 
160
then the devices do not freeze\&. If any device is still grabbed,
 
161
then a subsequent event for it will still cause all devices to
 
162
freeze\&. SyncAll has no effect unless all devices are frozen by
 
163
the client\&. If any device is frozen twice by the client on
 
164
behalf of two separate grabs, SyncAll thaws for both\&. A
 
165
subsequent freeze for SyncAll will only freeze each device
 
166
once\&.
 
167
.fi
 
168
.if n \{\
 
169
.RE
 
170
.\}
 
171
.sp
 
172
.if n \{\
 
173
.RS 4
 
174
.\}
 
175
.nf
 
176
AsyncAll If all devices are frozen by the client, event
 
177
processing for all devices continues normally\&. If any device is
 
178
frozen multiple times by the client on behalf of multiple
 
179
separate grabs, AsyncAll thaws for all\&. AsyncAll has no effect
 
180
unless all devices are frozen by the client\&.
 
181
.fi
 
182
.if n \{\
 
183
.RE
 
184
.\}
 
185
.sp
 
186
.if n \{\
 
187
.RS 4
 
188
.\}
 
189
.nf
 
190
AsyncThisDevice, SyncThisDevice, and ReplayThisDevice have no
 
191
effect on the processing of events from the remaining
 
192
devices\&.AsyncOtherDevices has no effect on the processing of
 
193
events from the specified device\&. When the event_mode is
 
194
SyncAll or AsyncAll, the device parameter is ignored\&.
 
195
.fi
 
196
.if n \{\
 
197
.RE
 
198
.\}
 
199
.sp
 
200
.if n \{\
 
201
.RS 4
 
202
.\}
 
203
.nf
 
204
It is possible for several grabs of different devices by the
 
205
same or different clients to be active simultaneously\&. If a
 
206
device is frozen on behalf of any grab, no event processing is
 
207
performed for the device\&. It is possible for a single device to
 
208
be frozen because of several grabs\&. In this case, the freeze
 
209
must be released on behalf of each grab before events can again
 
210
be processed\&.
 
211
.fi
 
212
.if n \{\
 
213
.RE
 
214
.\}
 
215
.sp
 
216
.if n \{\
 
217
.RS 4
 
218
.\}
 
219
.nf
 
220
XAllowDeviceEvents can generate a BadDevice or BadValue error\&.
 
221
.fi
 
222
.if n \{\
 
223
.RE
 
224
.\}
 
225
.SH "DIAGNOSTICS"
 
226
.sp
 
227
.if n \{\
 
228
.RS 4
 
229
.\}
 
230
.nf
 
231
BadDevice
 
232
       An invalid device was specified\&. The specified device
 
233
       does not exist or has not been opened by this client via
 
234
       XOpenInputDevice\&. This error may also occur if the
 
235
       specified device is the X keyboard or X pointer device\&.
 
236
.fi
 
237
.if n \{\
 
238
.RE
 
239
.\}
 
240
.sp
 
241
.if n \{\
 
242
.RS 4
 
243
.\}
 
244
.nf
 
245
BadValue
 
246
       An invalid mode was specified on the request\&.
 
247
.fi
 
248
.if n \{\
 
249
.RE
 
250
.\}
143
251
.SH "SEE ALSO"
144
 
XGrabDevice(3)
145
 
.br
146
 
\fI\*(xL\fP
 
252
.sp
 
253
.if n \{\
 
254
.RS 4
 
255
.\}
 
256
.nf
 
257
XGrabDevice(libmansuffix)
 
258
.fi
 
259
.if n \{\
 
260
.RE
 
261
.\}