1xcb_input_get_device_focus(3) XCB Requests xcb_input_get_device_focus(3)
2
3
4
6 xcb_input_get_device_focus -
7
9 #include <xcb/xinput.h>
10
11 Request function
12 xcb_input_get_device_focus_cookie_t
13 xcb_input_get_device_focus(xcb_connection_t *conn,
14 uint8_t device_id);
15
16 Reply datastructure
17 typedef struct xcb_input_get_device_focus_reply_t {
18 uint8_t response_type;
19 uint8_t xi_reply_type;
20 uint16_t sequence;
21 uint32_t length;
22 xcb_window_t focus;
23 xcb_timestamp_t time;
24 uint8_t revert_to;
25 uint8_t pad0[15];
26 } xcb_input_get_device_focus_reply_t;
27
28 Reply function
29 xcb_input_get_device_focus_reply_t
30 *xcb_input_get_device_focus_reply(xcb_connection_t *conn,
31 xcb_input_get_device_focus_cookie_t cookie,
32 xcb_generic_error_t **e);
33
35 conn The XCB connection to X11.
36
37 device_id TODO: NOT YET DOCUMENTED.
38
40 response_type
41 The type of this reply, in this case XCB_INPUT_GET_DEVICE_FO‐
42 CUS. This field is also present in the xcb_generic_reply_t
43 and can be used to tell replies apart from each other.
44
45 sequence The sequence number of the last request processed by the X11
46 server.
47
48 length The length of the reply, in words (a word is 4 bytes).
49
50 xi_reply_type
51 TODO: NOT YET DOCUMENTED.
52
53 focus TODO: NOT YET DOCUMENTED.
54
55 time TODO: NOT YET DOCUMENTED.
56
57 revert_to TODO: NOT YET DOCUMENTED.
58
61 Returns an xcb_input_get_device_focus_cookie_t. Errors have to be han‐
62 dled when calling the reply function xcb_input_get_device_focus_reply.
63
64 If you want to handle errors in the event loop instead, use xcb_in‐
65 put_get_device_focus_unchecked. See xcb-requests(3) for details.
66
68 This request does never generate any errors.
69
72 Generated from xinput.xml. Contact xcb@lists.freedesktop.org for cor‐
73 rections and improvements.
74
75
76
77X Version 11 libxcb 1.12 xcb_input_get_device_focus(3)