Lines Matching full:request

29  * Protocol testing for XIPassiveGrab request.
167 static unsigned char *data[4096]; /* the request buffer */
172 xXIPassiveGrabDeviceReq *request = (xXIPassiveGrabDeviceReq *) data; in test_XIPassiveGrabDevice() local
175 request_init(request, XIPassiveGrabDevice); in test_XIPassiveGrabDevice()
177 request->grab_window = CLIENT_WINDOW_ID; in test_XIPassiveGrabDevice()
180 client_request = init_client(request->length, request); in test_XIPassiveGrabDevice()
183 request->deviceid = 12; in test_XIPassiveGrabDevice()
184 request_XIPassiveGrabDevice(&client_request, request, BadDevice, in test_XIPassiveGrabDevice()
185 request->deviceid); in test_XIPassiveGrabDevice()
188 request->length -= 2; in test_XIPassiveGrabDevice()
189 request_XIPassiveGrabDevice(&client_request, request, BadLength, in test_XIPassiveGrabDevice()
191 /* re-init request since swapped length test leaves some values swapped */ in test_XIPassiveGrabDevice()
192 request_init(request, XIPassiveGrabDevice); in test_XIPassiveGrabDevice()
193 request->grab_window = CLIENT_WINDOW_ID; in test_XIPassiveGrabDevice()
194 request->deviceid = XIAllMasterDevices; in test_XIPassiveGrabDevice()
198 request->grab_type = i; in test_XIPassiveGrabDevice()
199 request_XIPassiveGrabDevice(&client_request, request, BadValue, in test_XIPassiveGrabDevice()
200 request->grab_type); in test_XIPassiveGrabDevice()
204 request->grab_type = XIGrabtypeEnter; in test_XIPassiveGrabDevice()
205 request->detail = 1; in test_XIPassiveGrabDevice()
206 request_XIPassiveGrabDevice(&client_request, request, BadValue, in test_XIPassiveGrabDevice()
207 request->detail); in test_XIPassiveGrabDevice()
209 request->grab_type = XIGrabtypeFocusIn; in test_XIPassiveGrabDevice()
210 request_XIPassiveGrabDevice(&client_request, request, BadValue, in test_XIPassiveGrabDevice()
211 request->detail); in test_XIPassiveGrabDevice()
213 request->detail = 0; in test_XIPassiveGrabDevice()
216 mask = (unsigned char *) &request[1]; in test_XIPassiveGrabDevice()
218 request->mask_len = bytes_to_int32(XI2LASTEVENT + 1); in test_XIPassiveGrabDevice()
219 request->length += request->mask_len; in test_XIPassiveGrabDevice()
221 request_XIPassiveGrabDevice(&client_request, request, BadValue, in test_XIPassiveGrabDevice()
229 request->deviceid = XIAllDevices; in test_XIPassiveGrabDevice()
230 request->grab_type = XIGrabtypeButton; in test_XIPassiveGrabDevice()
231 request->detail = XIAnyButton; in test_XIPassiveGrabDevice()
232 request_XIPassiveGrabDevice(&client_request, request, Success, 0); in test_XIPassiveGrabDevice()
240 request->num_modifiers = N_MODS; in test_XIPassiveGrabDevice()
241 request->length += N_MODS; in test_XIPassiveGrabDevice()
242 memcpy((uint32_t *) (request + 1) + request->mask_len, modifiers, in test_XIPassiveGrabDevice()
244 request_XIPassiveGrabDevice(&client_request, request, Success, 0); in test_XIPassiveGrabDevice()