NAME
xcbgetselectionowner - Gets the owner of a selection SYNOPSIS
#include
Request function xcbgetselectionownercookiet xcbgetselectionowner(xcbconnectiont *conn, xcbatomt selection); Reply datastructure typedef struct xcbgetselectionownerreplyt { uint8t responsetype; uint8t pad0; uint16t sequence; uint32t length; xcbwindowt owner; } xcbgetselectionownerreplyt; Reply function xcbgetselectionownerreplyt *xcbgetselectionownerreply(xcbconnectiont *conn, xcbgetselectionownercookiet cookie, xcbgenericerrort **e); REQUEST ARGUMENTS conn The XCB connection to X11. selection The selection. REPLY FIELDS responsetype The type of this reply, in this case XCBGETSELECTIONOWNER. This field is also present in the xcbgenericreplyt and can be used to tell replies apart from each other. sequence The sequence number of the last request processed by the X11 server. length The length of the reply, in words (a word is 4 bytes). owner The current selection owner window. DESCRIPTION Gets the owner of the specified selection. TODO: briefly explain what a selection is. RETURN VALUE Returns an xcbgetselectionownercookiet. Errors have to be handled when calling the reply function xcbgetselectionownerreply. If you want to handle errors in the event loop instead, use xcbgetse‐ lectionownerunchecked. See xcb-requests(3) for details. ERRORS xcbatomerrort selection does not refer to a valid atom. SEE ALSO
xcb-requests(3), xcbsetselectionowner(3) AUTHOR Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐ rections and improvements. X Version 11 libxcb 1.13 xcbgetselectionowner(3)