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

NAME

6       xcb_set_selection_owner - Sets the owner of a selection
7

SYNOPSIS

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

REQUEST ARGUMENTS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

50       xcb_atom_error_t
51                 selection does not refer to a valid atom.
52

SEE ALSO

54       xcb-requests(3), xcb_set_selection_owner(3)
55

AUTHOR

57       Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
58       rections and improvements.
59
60
61
62X Version 11                     libxcb 1.13.1      xcb_set_selection_owner(3)
Impressum