XtGetDisplays(3)
π
XtGetDisplays β the <X11/Intrinsic.h> era, bestie edition
okay so this is a page from the XT FUNCTIONS manual, and it's all about XtGetDisplays β one little function that hands you back every display your app context is holding onto. short page, but it's lowkey important. let's go β¨
πΈ NAME πΈ
XtGetDisplays β retrieve a list of displays associated with an application context. that's the whole vibe: you have an app context, it has displays, you want the receipts. periodt.
β¨ SYNTAX β¨
#include <X11/Intrinsic.h>
void XtGetDisplays(XtAppContext app_context, Display ***dpy_return,
Cardinal* num_dpy_return);
look at that triple pointer. Display ***?? she's giving main character energy fr fr π
π ARGUMENTS π
app_contextβ Specifies the application context. you're telling her which app context to go snooping in πdpy_returnβ Returns a list of open X display connections in the specified application context. yes, it's a triple pointer, yes it's iconic, no we are not going to talk about it πnum_dpy_returnβ Returns the count of open X display connections indpy_return. so you know how many little display besties you just got handed π¦
π DESCRIPTION π
To free the list of displays, use XtFree.
that's it. that's the whole description. not me getting emotional over a three-word manpage π₯Ή
but seriously bestie, don't forget the XtFree. that list is yours now β the function gave it to you, and nobody else is gonna clean it up. free the list, protect your memory, slay responsibly π«Ά
π SEE ALSO π
- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
iykyk π
and that's the whole page!! this one's from X Version 11, shipped with libXt 1.3.1, and the footer date stamp on the original is the same as the version block β so go forth, grab your displays, and XtFree them when you're done. mwah ππ
XtGetDisplays(3) β she's short, she's sweet, she leaks memory if you ignore her. no cap. π
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms