Lines Matching refs:stuff

58     swaps(&stuff->length);  in SProcXIPassiveGrabDevice()
59 swaps(&stuff->deviceid); in SProcXIPassiveGrabDevice()
60 swapl(&stuff->grab_window); in SProcXIPassiveGrabDevice()
61 swapl(&stuff->cursor); in SProcXIPassiveGrabDevice()
62 swapl(&stuff->time); in SProcXIPassiveGrabDevice()
63 swapl(&stuff->detail); in SProcXIPassiveGrabDevice()
64 swaps(&stuff->mask_len); in SProcXIPassiveGrabDevice()
65 swaps(&stuff->num_modifiers); in SProcXIPassiveGrabDevice()
68 ((uint32_t) stuff->mask_len + stuff->num_modifiers) *4); in SProcXIPassiveGrabDevice()
69 mods = (uint32_t *) &stuff[1] + stuff->mask_len; in SProcXIPassiveGrabDevice()
71 for (i = 0; i < stuff->num_modifiers; i++, mods++) { in SProcXIPassiveGrabDevice()
99 ((uint32_t) stuff->mask_len + stuff->num_modifiers) * 4); in ProcXIPassiveGrabDevice()
101 if (stuff->deviceid == XIAllDevices) in ProcXIPassiveGrabDevice()
103 else if (stuff->deviceid == XIAllMasterDevices) in ProcXIPassiveGrabDevice()
106 ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGrabAccess); in ProcXIPassiveGrabDevice()
108 client->errorValue = stuff->deviceid; in ProcXIPassiveGrabDevice()
113 if (stuff->grab_type != XIGrabtypeButton && in ProcXIPassiveGrabDevice()
114 stuff->grab_type != XIGrabtypeKeycode && in ProcXIPassiveGrabDevice()
115 stuff->grab_type != XIGrabtypeEnter && in ProcXIPassiveGrabDevice()
116 stuff->grab_type != XIGrabtypeFocusIn && in ProcXIPassiveGrabDevice()
117 stuff->grab_type != XIGrabtypeTouchBegin) { in ProcXIPassiveGrabDevice()
118 client->errorValue = stuff->grab_type; in ProcXIPassiveGrabDevice()
122 if ((stuff->grab_type == XIGrabtypeEnter || in ProcXIPassiveGrabDevice()
123 stuff->grab_type == XIGrabtypeFocusIn || in ProcXIPassiveGrabDevice()
124 stuff->grab_type == XIGrabtypeTouchBegin) && stuff->detail != 0) { in ProcXIPassiveGrabDevice()
125 client->errorValue = stuff->detail; in ProcXIPassiveGrabDevice()
129 if (stuff->grab_type == XIGrabtypeTouchBegin && in ProcXIPassiveGrabDevice()
130 (stuff->grab_mode != XIGrabModeTouch || in ProcXIPassiveGrabDevice()
131 stuff->paired_device_mode != GrabModeAsync)) { in ProcXIPassiveGrabDevice()
132 client->errorValue = stuff->grab_mode; in ProcXIPassiveGrabDevice()
136 if (XICheckInvalidMaskBits(client, (unsigned char *) &stuff[1], in ProcXIPassiveGrabDevice()
137 stuff->mask_len * 4) != Success) in ProcXIPassiveGrabDevice()
144 mask_len = min(xi2mask_mask_size(mask.xi2mask), stuff->mask_len * 4); in ProcXIPassiveGrabDevice()
145 xi2mask_set_one_mask(mask.xi2mask, stuff->deviceid, in ProcXIPassiveGrabDevice()
146 (unsigned char *) &stuff[1], mask_len * 4); in ProcXIPassiveGrabDevice()
150 param.ownerEvents = stuff->owner_events; in ProcXIPassiveGrabDevice()
151 param.grabWindow = stuff->grab_window; in ProcXIPassiveGrabDevice()
152 param.cursor = stuff->cursor; in ProcXIPassiveGrabDevice()
155 param.this_device_mode = stuff->grab_mode; in ProcXIPassiveGrabDevice()
156 param.other_devices_mode = stuff->paired_device_mode; in ProcXIPassiveGrabDevice()
159 param.this_device_mode = stuff->paired_device_mode; in ProcXIPassiveGrabDevice()
160 param.other_devices_mode = stuff->grab_mode; in ProcXIPassiveGrabDevice()
163 if (stuff->cursor != None) { in ProcXIPassiveGrabDevice()
164 ret = dixLookupResourceByType(&tmp, stuff->cursor, in ProcXIPassiveGrabDevice()
167 client->errorValue = stuff->cursor; in ProcXIPassiveGrabDevice()
173 dixLookupWindow((WindowPtr *) &tmp, stuff->grab_window, client, in ProcXIPassiveGrabDevice()
182 modifiers = (uint32_t *) &stuff[1] + stuff->mask_len; in ProcXIPassiveGrabDevice()
184 calloc(stuff->num_modifiers, sizeof(xXIGrabModifierInfo)); in ProcXIPassiveGrabDevice()
192 for (i = 0; i < stuff->num_modifiers; i++, modifiers++) { in ProcXIPassiveGrabDevice()
200 switch (stuff->grab_type) { in ProcXIPassiveGrabDevice()
202 status = GrabButton(client, dev, mod_dev, stuff->detail, in ProcXIPassiveGrabDevice()
209 if (stuff->detail > 255) in ProcXIPassiveGrabDevice()
212 status = GrabKey(client, dev, mod_dev, stuff->detail, in ProcXIPassiveGrabDevice()
217 status = GrabWindow(client, dev, stuff->grab_type, &param, &mask); in ProcXIPassiveGrabDevice()
267 swaps(&stuff->length); in SProcXIPassiveUngrabDevice()
268 swapl(&stuff->grab_window); in SProcXIPassiveUngrabDevice()
269 swaps(&stuff->deviceid); in SProcXIPassiveUngrabDevice()
270 swapl(&stuff->detail); in SProcXIPassiveUngrabDevice()
271 swaps(&stuff->num_modifiers); in SProcXIPassiveUngrabDevice()
274 ((uint32_t) stuff->num_modifiers) << 2); in SProcXIPassiveUngrabDevice()
275 modifiers = (uint32_t *) &stuff[1]; in SProcXIPassiveUngrabDevice()
277 for (i = 0; i < stuff->num_modifiers; i++, modifiers++) in SProcXIPassiveUngrabDevice()
294 ((uint32_t) stuff->num_modifiers) << 2); in ProcXIPassiveUngrabDevice()
296 if (stuff->deviceid == XIAllDevices) in ProcXIPassiveUngrabDevice()
298 else if (stuff->deviceid == XIAllMasterDevices) in ProcXIPassiveUngrabDevice()
301 rc = dixLookupDevice(&dev, stuff->deviceid, client, DixGrabAccess); in ProcXIPassiveUngrabDevice()
306 if (stuff->grab_type != XIGrabtypeButton && in ProcXIPassiveUngrabDevice()
307 stuff->grab_type != XIGrabtypeKeycode && in ProcXIPassiveUngrabDevice()
308 stuff->grab_type != XIGrabtypeEnter && in ProcXIPassiveUngrabDevice()
309 stuff->grab_type != XIGrabtypeFocusIn && in ProcXIPassiveUngrabDevice()
310 stuff->grab_type != XIGrabtypeTouchBegin) { in ProcXIPassiveUngrabDevice()
311 client->errorValue = stuff->grab_type; in ProcXIPassiveUngrabDevice()
315 if ((stuff->grab_type == XIGrabtypeEnter || in ProcXIPassiveUngrabDevice()
316 stuff->grab_type == XIGrabtypeFocusIn || in ProcXIPassiveUngrabDevice()
317 stuff->grab_type == XIGrabtypeTouchBegin) && stuff->detail != 0) { in ProcXIPassiveUngrabDevice()
318 client->errorValue = stuff->detail; in ProcXIPassiveUngrabDevice()
322 rc = dixLookupWindow(&win, stuff->grab_window, client, DixSetAttrAccess); in ProcXIPassiveUngrabDevice()
335 switch (stuff->grab_type) { in ProcXIPassiveUngrabDevice()
355 tempGrab->detail.exact = stuff->detail; in ProcXIPassiveUngrabDevice()
358 modifiers = (uint32_t *) &stuff[1]; in ProcXIPassiveUngrabDevice()
360 for (i = 0; i < stuff->num_modifiers; i++, modifiers++) { in ProcXIPassiveUngrabDevice()