---
name: "XtGetSelectionRequest"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtGetSelectionRequest"
---

# XtGetSelectionRequest(3)

retrieve the event that triggered the XtConvertSelectionProc

## NAME

XtGetSelectionRequest - retrieve the event that triggered the XtConvertSelectionProc

## SYNTAX

\#include \<X11/Intrinsic.h\>

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

## ARGUMENTS

- *w*

  Specifies the widget.

- *selection*

  Specifies the selection being processed.

- *request\_id*

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

## 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

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