| 1 |
'\" t |
| 2 |
.\" Title: xiallowevents |
| 3 |
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] |
| 4 |
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> |
| 5 |
.\" Date: 09/05/2024 |
| 6 |
.\" Manual: \ \& |
| 7 |
.\" Source: \ \& |
| 8 |
.\" Language: English |
| 9 |
.\" |
| 10 |
.TH "XIALLOWEVENTS" "libmansuffix" "09/05/2024" "\ \&" "\ \&" |
| 11 |
.\" ----------------------------------------------------------------- |
| 12 |
.\" * Define some portability stuff |
| 13 |
.\" ----------------------------------------------------------------- |
| 14 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 |
.\" http://bugs.debian.org/507673 |
| 16 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
.ie \n(.g .ds Aq \(aq |
| 19 |
.el .ds Aq ' |
| 20 |
.\" ----------------------------------------------------------------- |
| 21 |
.\" * set default formatting |
| 22 |
.\" ----------------------------------------------------------------- |
| 23 |
.\" disable hyphenation |
| 24 |
.nh |
| 25 |
.\" disable justification (adjust text to left margin only) |
| 26 |
.ad l |
| 27 |
.\" ----------------------------------------------------------------- |
| 28 |
.\" * MAIN CONTENT STARTS HERE * |
| 29 |
.\" ----------------------------------------------------------------- |
| 30 |
.SH "NAME" |
| 31 |
XIAllowEvents \- Release queued events |
| 32 |
.SH "SYNOPSIS" |
| 33 |
.sp |
| 34 |
.nf |
| 35 |
#include <X11/extensions/XInput2\&.h> |
| 36 |
.fi |
| 37 |
.sp |
| 38 |
.nf |
| 39 |
Status XIAllowEvents( Display *display, |
| 40 |
int deviceid, |
| 41 |
int event_mode, |
| 42 |
Time time ); |
| 43 |
.fi |
| 44 |
.sp |
| 45 |
.nf |
| 46 |
Status XIAllowTouchEvents( Display *dpy, |
| 47 |
int deviceid, |
| 48 |
unsigned int touchid, |
| 49 |
Window grab_window, |
| 50 |
int event_mode ); |
| 51 |
.fi |
| 52 |
.sp |
| 53 |
.nf |
| 54 |
display |
| 55 |
Specifies the connection to the X server\&. |
| 56 |
.fi |
| 57 |
.sp |
| 58 |
.nf |
| 59 |
device |
| 60 |
Specifies the device that is to be grabbed or released |
| 61 |
.fi |
| 62 |
.sp |
| 63 |
.nf |
| 64 |
event_mode |
| 65 |
Specifies whether a device is to be thawed and events are to be |
| 66 |
replayed, or how to handle a grabbed touch sequence\&. |
| 67 |
.fi |
| 68 |
.sp |
| 69 |
.nf |
| 70 |
time |
| 71 |
A valid server time or CurrentTime\&. |
| 72 |
.fi |
| 73 |
.sp |
| 74 |
.nf |
| 75 |
touchid |
| 76 |
The ID of the touch sequence to accept or reject\&. The value is ignored |
| 77 |
for event modes other than AcceptTouch and RejectTouch\&. |
| 78 |
.fi |
| 79 |
.sp |
| 80 |
.nf |
| 81 |
grab_window |
| 82 |
The window on which to accept or reject a touch sequence grab\&. The value |
| 83 |
is ignored for event modes other than AcceptTouch and RejectTouch\&. |
| 84 |
.fi |
| 85 |
.SH "DESCRIPTION" |
| 86 |
.sp |
| 87 |
.if n \{\ |
| 88 |
.RS 4 |
| 89 |
.\} |
| 90 |
.nf |
| 91 |
The XIAllowEvents request releases some queued events if the client |
| 92 |
has caused a device to freeze\&. It also is used to handle touch grab and |
| 93 |
ownership processing\&. |
| 94 |
.fi |
| 95 |
.if n \{\ |
| 96 |
.RE |
| 97 |
.\} |
| 98 |
.sp |
| 99 |
.if n \{\ |
| 100 |
.RS 4 |
| 101 |
.\} |
| 102 |
.nf |
| 103 |
The function has no effect if the specified time is earlier than the last\-grab |
| 104 |
time of the most recent active grab for the client, or if the specified time is |
| 105 |
later than the current X server time\&. The time parameter must be CurrentTime for |
| 106 |
requests with event modes of XIAcceptTouch and XIRejectTouch\&. |
| 107 |
.fi |
| 108 |
.if n \{\ |
| 109 |
.RE |
| 110 |
.\} |
| 111 |
.sp |
| 112 |
.if n \{\ |
| 113 |
.RS 4 |
| 114 |
.\} |
| 115 |
.nf |
| 116 |
The following describes the processing that occurs depending on what constant |
| 117 |
you pass to the event_mode argument: |
| 118 |
.fi |
| 119 |
.if n \{\ |
| 120 |
.RE |
| 121 |
.\} |
| 122 |
.sp |
| 123 |
.if n \{\ |
| 124 |
.RS 4 |
| 125 |
.\} |
| 126 |
.nf |
| 127 |
XIAsyncDevice: |
| 128 |
If the specified device is frozen by the client, event processing for that |
| 129 |
device continues as usual\&. If the device is frozen multiple times by the |
| 130 |
client on behalf of multiple separate grabs, XIAsyncDevice thaws for |
| 131 |
all\&. XIAsyncDevice has no effect if the specified device is not frozen |
| 132 |
by the client, but the device need not be grabbed by the client\&. |
| 133 |
.fi |
| 134 |
.if n \{\ |
| 135 |
.RE |
| 136 |
.\} |
| 137 |
.sp |
| 138 |
.if n \{\ |
| 139 |
.RS 4 |
| 140 |
.\} |
| 141 |
.nf |
| 142 |
XISyncDevice: |
| 143 |
If the specified device is frozen and actively grabbed by the client, |
| 144 |
event processing for that device continues normally until the next |
| 145 |
button press or release, or key press or release, or a gesture begin or end |
| 146 |
event (depending on the grab) is reported to the client\&. |
| 147 |
At this time, the specified device again appears to freeze\&. |
| 148 |
However, if the reported event causes the grab to be released, the |
| 149 |
specified device does not freeze\&. |
| 150 |
XISyncDevice has no effect if the specified device is not frozen by the |
| 151 |
client or is not grabbed by the client\&. |
| 152 |
.fi |
| 153 |
.if n \{\ |
| 154 |
.RE |
| 155 |
.\} |
| 156 |
.sp |
| 157 |
.if n \{\ |
| 158 |
.RS 4 |
| 159 |
.\} |
| 160 |
.nf |
| 161 |
XIReplayDevice: |
| 162 |
If the specified device is actively grabbed by the client and is frozen |
| 163 |
as the result of an event having been sent to the client (either from |
| 164 |
the activation of a XIGrabButton or from a previous XIAllowEvents with |
| 165 |
mode SyncDevice, but not from a Grab), the grab is released and |
| 166 |
that event is completely reprocessed\&. This time, however, the request |
| 167 |
ignores any passive grabs at or above (towards the root) the |
| 168 |
grab window of the grab just released\&. |
| 169 |
The request has no effect if the specified device is not grabbed by |
| 170 |
the client or if it is not frozen as the result of an event\&. |
| 171 |
In case of gesture begin event being replayed, the original grabbing |
| 172 |
client will receive a XI_GesturePinchEnd or XI_GestureSwipeEnd event\&. |
| 173 |
.fi |
| 174 |
.if n \{\ |
| 175 |
.RE |
| 176 |
.\} |
| 177 |
.sp |
| 178 |
.if n \{\ |
| 179 |
.RS 4 |
| 180 |
.\} |
| 181 |
.nf |
| 182 |
XIAsyncPairedDevice: |
| 183 |
If the paired master device is frozen by the client, event processing |
| 184 |
for it continues as usual\&. If the paired device is frozen multiple |
| 185 |
times by the client on behalf of multiple separate grabs, |
| 186 |
XIAsyncPairedDevice thaws for all\&. |
| 187 |
XIAsyncPairedDevice has no effect if the device is not frozen by the |
| 188 |
client, but those devices need not be grabbed by the client\&. |
| 189 |
XIAsyncPairedDevice has no effect if deviceid specifies a slave device\&. |
| 190 |
.fi |
| 191 |
.if n \{\ |
| 192 |
.RE |
| 193 |
.\} |
| 194 |
.sp |
| 195 |
.if n \{\ |
| 196 |
.RS 4 |
| 197 |
.\} |
| 198 |
.nf |
| 199 |
XISyncPair: |
| 200 |
If both the device and the paired master device are frozen by the |
| 201 |
client, event processing (for both devices) continues normally until |
| 202 |
the next XI_ButtonPress, XI_ButtonRelease, XI_KeyPress, or XI_KeyRelease |
| 203 |
event is reported to the client for a grabbed device (button event for |
| 204 |
a pointer, key event for a keyboard), at which time the devices again |
| 205 |
appear to freeze\&. However, if the reported event causes the grab to be |
| 206 |
released, then the devices do not freeze (but if the other device is |
| 207 |
still grabbed, then a subsequent event for it will still cause both |
| 208 |
devices to freeze)\&. |
| 209 |
XISyncPair has no effect unless both the device and the paired master |
| 210 |
device are frozen by the client\&. If the device or paired master device |
| 211 |
is frozen twice by the client on behalf of two separate grabs, |
| 212 |
XISyncPair thaws for both (but a subsequent freeze for XISyncPair will |
| 213 |
only freeze each device once)\&. |
| 214 |
XISyncPair has no effect if deviceid specifies a slave device\&. |
| 215 |
.fi |
| 216 |
.if n \{\ |
| 217 |
.RE |
| 218 |
.\} |
| 219 |
.sp |
| 220 |
.if n \{\ |
| 221 |
.RS 4 |
| 222 |
.\} |
| 223 |
.nf |
| 224 |
XIAsyncPair: |
| 225 |
If the device and the paired master device are frozen by the client, |
| 226 |
event processing for both devices continues normally\&. If a device is |
| 227 |
frozen twice by the client on behalf of two separate grabs, AsyncBoth |
| 228 |
thaws for both\&. XIAsyncPair has no effect unless both the device and the |
| 229 |
paired master device frozen by the client\&. |
| 230 |
XIAsyncPair has no effect if deviceid specifies a slave device\&. |
| 231 |
.fi |
| 232 |
.if n \{\ |
| 233 |
.RE |
| 234 |
.\} |
| 235 |
.sp |
| 236 |
.if n \{\ |
| 237 |
.RS 4 |
| 238 |
.\} |
| 239 |
.nf |
| 240 |
XIAcceptTouch: |
| 241 |
The client is deemed to have taken control of the touch sequence once it |
| 242 |
owns the sequence\&. TouchEnd events will be sent to all clients listening |
| 243 |
to the touch sequence that have either grabbed the touch sequence on a |
| 244 |
child window of the grab_window or have received events for the touch |
| 245 |
sequence through event selection\&. These clients will no longer receive |
| 246 |
any TouchUpdate events\&. |
| 247 |
.fi |
| 248 |
.if n \{\ |
| 249 |
.RE |
| 250 |
.\} |
| 251 |
.sp |
| 252 |
.if n \{\ |
| 253 |
.RS 4 |
| 254 |
.\} |
| 255 |
.nf |
| 256 |
XIRejectTouch: |
| 257 |
The client is no longer interested in the touch sequence, and will |
| 258 |
receive a XI_TouchEnd event\&. If the client is the current owner of the |
| 259 |
sequence, ownership will be passed on to the next listener\&. |
| 260 |
.fi |
| 261 |
.if n \{\ |
| 262 |
.RE |
| 263 |
.\} |
| 264 |
.SH "DIAGNOSTICS" |
| 265 |
.sp |
| 266 |
.if n \{\ |
| 267 |
.RS 4 |
| 268 |
.\} |
| 269 |
.nf |
| 270 |
BadDevice |
| 271 |
An invalid deviceid was specified\&. |
| 272 |
.fi |
| 273 |
.if n \{\ |
| 274 |
.RE |
| 275 |
.\} |
| 276 |
.sp |
| 277 |
.if n \{\ |
| 278 |
.RS 4 |
| 279 |
.\} |
| 280 |
.nf |
| 281 |
BadAccess |
| 282 |
This error may occur if event_mode is XIAcceptTouch and this client |
| 283 |
is not the current or potential owner of the specified touch ID\&. |
| 284 |
.fi |
| 285 |
.if n \{\ |
| 286 |
.RE |
| 287 |
.\} |
| 288 |
.sp |
| 289 |
.if n \{\ |
| 290 |
.RS 4 |
| 291 |
.\} |
| 292 |
.nf |
| 293 |
BadValue |
| 294 |
This error may occur if event_mode is XIAcceptTouch and touch ID is invalid\&. |
| 295 |
.fi |
| 296 |
.if n \{\ |
| 297 |
.RE |
| 298 |
.\} |
| 299 |
.sp |
| 300 |
.if n \{\ |
| 301 |
.RS 4 |
| 302 |
.\} |
| 303 |
.nf |
| 304 |
BadWindow |
| 305 |
A value for a grab_window argument does not name a defined |
| 306 |
Window\&. |
| 307 |
.fi |
| 308 |
.if n \{\ |
| 309 |
.RE |
| 310 |
.\} |
| 311 |
.SH "SEE ALSO" |
| 312 |
.sp |
| 313 |
.if n \{\ |
| 314 |
.RS 4 |
| 315 |
.\} |
| 316 |
.nf |
| 317 |
XIGrabButton(libmansuffix) |
| 318 |
.fi |
| 319 |
.if n \{\ |
| 320 |
.RE |
| 321 |
.\} |