XtAppGetSelectionTimeout(3) XT FUNCTIONS XtAppGetSelectionTimeout(3)

# [NAME](#NAME)

XtAppGetSelectionTimeout, XtAppSetSelectionTimeout - set and obtain selection timeout values

# [SYNTAX](#SYNTAX)

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

unsigned long XtAppGetSelectionTimeout(XtAppContext *app\_context*);

void XtAppSetSelectionTimeout(XtAppContext *app\_context*, unsigned long *timeout*);

# [ARGUMENTS](#ARGUMENTS)

[*app\_context*](#app_context)

Specifies the application context.

[*timeout*](#timeout)

Specifies the selection timeout in milliseconds.

# [DESCRIPTION](#DESCRIPTION)

The **XtAppGetSelectionTimeout** function returns the current selection timeout value, in milliseconds. The selection timeout is the time within which the two communicating applications must respond to one another. The initial timeout value is set by the **selectionTimeout** application resource, or, if **selectionTimeout** is not specified, it defaults to five seconds.

The **XtAppSetSelectionTimeout** function sets the Intrinsics's selection timeout mechanism. Note that most applications should not set the selection timeout.

# [SEE ALSO](#SEE_ALSO)

[XtOwnSelection(3)](/man/os/libxt/XtOwnSelection.3)  
*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

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