1xcb_set_selection_owner(3) XCB Requests xcb_set_selection_owner(3)
2
3
4
6 xcb_set_selection_owner - Sets the owner of a selection
7
9 #include <xcb/xproto.h>
10
11 Request function
12 xcb_void_cookie_t xcb_set_selection_owner(xcb_connection_t *conn,
13 xcb_window_t owner, xcb_atom_t selection, xcb_timestamp_t time);
14
16 conn The XCB connection to X11.
17
18 owner The new owner of the selection.
19
20 The special value XCB_NONE means that the selection will have
21 no owner.
22
23 selection The selection.
24
25 time Timestamp to avoid race conditions when running X over the
26 network.
27
28 The selection will not be changed if time is earlier than the
29 current last-change time of the selection or is later than
30 the current X server time. Otherwise, the last-change time
31 is set to the specified time.
32
33 The special value XCB_CURRENT_TIME will be replaced with the
34 current server time.
35
37 Makes window the owner of the selection selection and updates the last-
38 change time of the specified selection.
39
40 TODO: briefly explain what a selection is.
41
43 Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the
44 event loop.
45
46 If you want to handle errors directly with xcb_request_check instead,
47 use xcb_set_selection_owner_checked. See xcb-requests(3) for details.
48
50 xcb_atom_error_t
51 selection does not refer to a valid atom.
52
54 xcb-requests(3), xcb_set_selection_owner(3)
55
57 Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
58 rections and improvements.
59
60
61
62X Version 11 libxcb 1.12 xcb_set_selection_owner(3)