XtGetSelectionRequest(3) XT FUNCTIONS XtGetSelectionRequest(3)

# [NAME](#NAME)

XtGetSelectionRequest - retrieve the event that triggered the XtConvertSelectionProc

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

XSelectionRequestEvent* XtGetSelectionRequest(Widget *w*, Atom *selection*, XtRequestId *request\_id*);

# [ARGUMENTS](#ARGUMENTS)

[*w*](#w)

Specifies the widget.

[*selection*](#selection)

Specifies the selection being processed.

[*request\_id*](#request_id)

Specifies the requestor id in the case of incremental selections, or NULL in the case of atomic transfers.

# [DESCRIPTION](#DESCRIPTION)

**XtGetSelectionRequest** may only be called from within an **XtConvertSelectionProc** procedure and returns a pointer to the **SelectionRequest** event that caused the conversion procedure to be invoked. *Request\_id* specifies a unique id for the individual request in the case that multiple incremental transfers are outstanding. For atomic transfers, *request\_id* must be specified as NULL. If no **SelectionRequest** event is being processed for the specified *widget*, *selection*, and *request\_id*, **XtGetSelectionRequest** returns NULL.

# [SEE ALSO](#SEE_ALSO)

*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtGetSelectionRequest(3) from libxt 1.3.1-r11 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
