DTSAVERGETWINDOWS(3)
π DTSAVERGETWINDOWS(3) π
okay so bestie, this is a library call page for DtSaverGetWindows, and it's literally here to hand a screen saver app the windows it should draw on. No cap, it's giving XCDE said go decorate these windows energy β¨
πΈ NAME πΈ
DtSaverGetWindows β get the list of windows for drawing by a screen saver application.
π¦ SYNOPSIS π¦
#include &<Dt/Saver.h>
Boolean DtSaverGetWindows(
Display *display,
Window **window,
int *count);
π DESCRIPTION π
The DtSaverGetWindows function returns a list of windows on which a screen saver application should draw when it's invoked by XCDE. That's the whole assignment: XCDE calls, you get windows, you draw on them.
displayis the X display. Yes, the display argument, doing display things.windowis the address of a pointer to receive the pointer to a list of windows. So it's a pointer-to-a-pointer receiving situation, lowkey iconic.countis the address of an integer to receive the number of elements in the list of windows returned inwindow. It's the little number bestie that tells you how many windows are in the list.
π₯ RETURN VALUE π₯
Upon successful completion, DtSaverGetWindows returns True; otherwise, it returns False. So it's either the slay True or the sad little no False.
π APPLICATION USAGE π
If DtSaverGetWindows is not successful, failure may be due to a memory allocation error or that the screen saver application was not invoked from XCDE. Not me making stuff up β that's the actual may-be-caused-by list.
bestie, the application must useXtFree(3)to free data returned in*window. No forgetting, no leaking, no "I'll do it later" β periodt π«Ά
π SEE ALSO π
Dt/Saver.h-DtSaver(5);XtFree(3).
that's the cute sign-off from the source/version corner, bestie: DtSaverGetWindows(library call), and the original footer has no date listed, so that's the whole undated library call goodbye vibe π«Άπβ¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms