1xcb_get_input_focus(3) XCB Requests xcb_get_input_focus(3)
2
3
4
6 xcb_get_input_focus -
7
9 #include <xcb/xproto.h>
10
11 Request function
12 xcb_get_input_focus_cookie_t
13 xcb_get_input_focus(xcb_connection_t *conn,
14
15 Reply datastructure
16 typedef struct xcb_get_input_focus_reply_t {
17 uint8_t response_type;
18 uint8_t revert_to;
19 uint16_t sequence;
20 uint32_t length;
21 xcb_window_t focus;
22 } xcb_get_input_focus_reply_t;
23
24 Reply function
25 xcb_get_input_focus_reply_t
26 *xcb_get_input_focus_reply(xcb_connection_t *conn,
27 xcb_get_input_focus_cookie_t cookie, xcb_generic_error_t **e);
28
30 conn The XCB connection to X11.
31
33 response_type
34 The type of this reply, in this case XCB_GET_INPUT_FOCUS.
35 This field is also present in the xcb_generic_reply_t and can
36 be used to tell replies apart from each other.
37
38 sequence The sequence number of the last request processed by the X11
39 server.
40
41 length The length of the reply, in words (a word is 4 bytes).
42
43 revert_to One of the following values:
44
45 XCB_INPUT_FOCUS_NONE
46 The focus reverts to XCB_NONE, so no window will
47 have the input focus.
48
49 XCB_INPUT_FOCUS_POINTER_ROOT
50 The focus reverts to XCB_POINTER_ROOT respectively.
51 When the focus reverts, FocusIn and FocusOut events
52 are generated, but the last-focus-change time is
53 not changed.
54
55 XCB_INPUT_FOCUS_PARENT
56 The focus reverts to the parent (or closest view‐
57 able ancestor) and the new revert_to value is
58 XCB_INPUT_FOCUS_NONE.
59
60 XCB_INPUT_FOCUS_FOLLOW_KEYBOARD
61 NOT YET DOCUMENTED. Only relevant for the xinput
62 extension.
63 TODO: NOT YET DOCUMENTED.
64
65 focus TODO: NOT YET DOCUMENTED.
66
69 Returns an xcb_get_input_focus_cookie_t. Errors have to be handled when
70 calling the reply function xcb_get_input_focus_reply.
71
72 If you want to handle errors in the event loop instead, use xcb_get_in‐
73 put_focus_unchecked. See xcb-requests(3) for details.
74
76 This request does never generate any errors.
77
80 Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
81 rections and improvements.
82
83
84
85X Version 11 libxcb 1.12 xcb_get_input_focus(3)