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

# XtAppGetSelectionTimeout(3)

set and obtain selection timeout values

## NAME

XtAppGetSelectionTimeout, XtAppSetSelectionTimeout - set and obtain selection timeout values

## SYNTAX

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

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

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

## ARGUMENTS

- *app\_context*

  Specifies the application context.

- *timeout*

  Specifies the selection timeout in milliseconds.

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

[XtOwnSelection(3)](/XtOwnSelection/3.md)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
