---
name: "XtAppSetSelectionTimeout"
section: "3x"
platform: "linux"
package: "libxt-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XtAppGetSelectionTimeout/3x"
---

# XtAppSetSelectionTimeout(3x)

set and obtain selection timeout values

Part of [XtAppGetSelectionTimeout(3x)](/XtAppGetSelectionTimeout/3x.md).

## NAME

XtAppGetSelectionTimeout, XtAppSetSelectionTimeout - set and obtain selection timeout values

## SYNTAX

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(3Xt)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
