DtWsmAddWorkspace(API)
π NAME π
okay bestie, welcome to the DtWsmAddWorkspace(API) manual page β the manual name is right there, and the NAME section is literally DtWsmAddWorkspace β add a workspace β¨
π«Ά SYNOPSIS π«Ά
#include &<Dt/Wsm.h>
int DtWsmAddWorkspace(
Widget widget,
char *title);
πΈ DESCRIPTION πΈ
okay so DtWsmAddWorkspace() is besties with the CDE workspace manager, dtwm(1), and it adds a new workspace. Applications can use this function to implement an interface to the workspace manager. periodt π
If DtWsmAddWorkspace() is not successful, the most likely reason for failure is that the CDE workspace manager, dtwm(1), is not running. not me being dramatic, just keeping it real π
DtWsmAddWorkspace() sends a message to the CDE workspace manager, dtwm(1), to add the workspace. lowkey simple, highkey iconic π
π ARGUMENTS π
widgetβ a realized widget. yes, realized is the word, bestie β¨titleβ a user visible title for the new workspace. make it cute, make it visible π
π RETURN VALUE π
The function returns Success (0) when it succeeds, and non-zero upon failure. so 0 is the slay outcome, anything else is the vibe check failing π
π¦ SEE ALSO π¦
DtWsm(5)- "Communicating with the Workspace Manager" section in the CDE Programmer's Guide
- "Workspace Manager" section in the CDE Programmer's Overview
and that's the page, bestie! The footer had no source/version/date deets for me to spill β just the page name β so here's the cute sign-off: stay hydrated, keep your widgets realized, and bye πβ¨
π¦ 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