DTWSMGETWORKSPACELIST(3)
π NAME π
DtWsmGetWorkspaceList β get the names of the currently defined workspaces. β¨
okay so bestie, this is the <DtWsmGetWorkspaceList> page β the manual name is literally βlibrary callβ β and weβre diving in. π«Ά
π¦ SYNOPSIS π¦
#include &<Dt/Wsm.h>
int DtWsmGetWorkspaceList(
Display *display,
Window root,
Atom **ppaWorkspaces,
int *pNumWorkspaces);
Yes bestie, that&in#include &<Dt/Wsm.h>is exactly what the page shows β keep it character for character, iykyk π .
π DESCRIPTION π
The DtWsmGetWorkspaceList function works with the XCDE workspace manager, dtwm(1). and returns a list of the names (converted into X atoms) of the currently defined workspaces. π
displayβ the X display. π₯οΈrootβ the root window of the screen of interest. πͺ*ppaWorkspacesβ the address of a pointer to receive the returned pointer to the workspacelist. πpNumWorkspacesβ the address of an integer to receive the number of elements in the workspacelist. π’
β RETURN VALUE β
Upon successful completion, the DtWsmGetWorkspaceList function returns Success and the workspace manager returns in *ppaWorkspaces the list of atoms identifying workspaces, and returns in pNumWorkspaces the number of workspaces. π
π₯ APPLICATION USAGE π₯
If the DtWsmGetWorkspaceList function is not successful, failure may be due to a memory allocation error or failure to find the correct workspace information (that is, the XCDE workspace manager, dtwm(1), is not running). π
lowkey important: those are the two failure reasons the page lists β memory allocation error, or not finding the correct workspace info because dtwm(1) isnβt running. π«Ά
To get detailed information on the workspaces, the application must first call the DtWsmGetWorkspaceList function to get the names of all the workspaces. Then, for each workspace in the list, the application must call the DtWsmGetWorkspaceInfo(3) function. The application must use XtFree(3) to free data returned in *ppaWorkspaces. π§
π SEE ALSO π
Dt/Wsm.h-DtWsm(5),dtwm(1),XtFree(3),DtWsmGetWorkspaceInfo(3).
And thatβs the whole page, bestie β the footer only names DtWsmGetWorkspaceList as a library call, with no extra source/version/date line to report, so this cute sign-off is doing that job. πβ¨π
π¦ 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