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

# XtGetDisplays(3)

retrieve a list of displays associated with an application context

## NAME

XtGetDisplays - retrieve a list of displays associated with an application context

## SYNTAX

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

void XtGetDisplays(XtAppContext *app\_context*, Display \*\*\**dpy\_return*, Cardinal\* *num\_dpy\_return*);

## ARGUMENTS

- *app\_context*

  Specifies the application context.

- *dpy\_return*

  Returns a list of open X display connections in the specified application context.

- *num\_dpy\_return*

  Returns the count of open X display connections in *dpy\_return*.

## DESCRIPTION

To free the list of displays, use **XtFree**.

## SEE ALSO

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