XtGetDisplays(3) XT FUNCTIONS XtGetDisplays(3)

# [NAME](#NAME)

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

# [SYNTAX](#SYNTAX)

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

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

# [ARGUMENTS](#ARGUMENTS)

[*app\_context*](#app_context)

Specifies the application context.

[*dpy\_return*](#dpy_return)

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

[*num\_dpy\_return*](#num_dpy_return)

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

# [DESCRIPTION](#DESCRIPTION)

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

# [SEE ALSO](#SEE_ALSO)

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

libXt 1.3.1 X Version 11

---

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