1xcb_input_grab_device(3)         XCB Requests         xcb_input_grab_device(3)
2
3
4

NAME

6       xcb_input_grab_device -
7

SYNOPSIS

9       #include <xcb/xinput.h>
10
11   Request function
12       xcb_input_grab_device_cookie_t
13              xcb_input_grab_device(xcb_connection_t *conn,
14              xcb_window_t grab_window, xcb_timestamp_t time,
15              uint16_t num_classes, uint8_t this_device_mode,
16              uint8_t other_device_mode, uint8_t owner_events,
17              uint8_t device_id, const xcb_input_event_class_t *classes);
18
19   Reply datastructure
20       typedef struct xcb_input_grab_device_reply_t {
21           uint8_t  response_type;
22           uint8_t  xi_reply_type;
23           uint16_t sequence;
24           uint32_t length;
25           uint8_t  status;
26           uint8_t  pad0[23];
27       } xcb_input_grab_device_reply_t;
28
29   Reply function
30       xcb_input_grab_device_reply_t
31              *xcb_input_grab_device_reply(xcb_connection_t *conn,
32              xcb_input_grab_device_cookie_t cookie, xcb_generic_error_t **e);
33

REQUEST ARGUMENTS

35       conn      The XCB connection to X11.
36
37       grab_window
38                 TODO: NOT YET DOCUMENTED.
39
40       time      TODO: NOT YET DOCUMENTED.
41
42       num_classes
43                 TODO: NOT YET DOCUMENTED.
44
45       this_device_mode
46                 TODO: NOT YET DOCUMENTED.
47
48       other_device_mode
49                 TODO: NOT YET DOCUMENTED.
50
51       owner_events
52                 TODO: NOT YET DOCUMENTED.
53
54       device_id TODO: NOT YET DOCUMENTED.
55
56       classes   TODO: NOT YET DOCUMENTED.
57

REPLY FIELDS

59       response_type
60                 The type of this reply, in this case XCB_INPUT_GRAB_DEVICE.
61                 This field is also present in the xcb_generic_reply_t and can
62                 be used to tell replies apart from each other.
63
64       sequence  The sequence number of the last request processed by the X11
65                 server.
66
67       length    The length of the reply, in words (a word is 4 bytes).
68
69       xi_reply_type
70                 TODO: NOT YET DOCUMENTED.
71
72       status    TODO: NOT YET DOCUMENTED.
73

DESCRIPTION

RETURN VALUE

76       Returns an xcb_input_grab_device_cookie_t. Errors have to be handled
77       when calling the reply function xcb_input_grab_device_reply.
78
79       If you want to handle errors in the event loop instead, use xcb_in‐
80       put_grab_device_unchecked. See xcb-requests(3) for details.
81

ERRORS

83       This request does never generate any errors.
84

SEE ALSO

AUTHOR

87       Generated from xinput.xml. Contact xcb@lists.freedesktop.org for cor‐
88       rections and improvements.
89
90
91
92X Version 11                      libxcb 1.13         xcb_input_grab_device(3)
Impressum