DtWsmDeleteWorkspace(API)
okay so bestie, welcome to the DtWsmDeleteWorkspace(API) page ๐
โ itโs giving โdelete one specific workspaceโ energy, and honestly? iconic.
๐ NAME ๐
DtWsmDeleteWorkspace โ delete a specific workspace. no cap, thatโs the whole assignment ๐
โจ SYNOPSIS โจ
#include &<Dt/Wsm.h>
int DtWsmDeleteWorkspace(
Widget widget,
Atom workspace);
๐ DESCRIPTION ๐
okay so hereโs the tea โ: the DtWsmDeleteWorkspace() function works with the CDE workspace manager, dtwm(1), and deletes a specific workspace. Applications can use this function to implement an interface to the workspace manager. slay ๐ซถ
If the DtWsmDeleteWorkspace() function is not successful, the most likely reason for failure is that the CDE workspace manager, dtwm(1), is not running. like, thatโs the big likely culprit ๐ญ
The DtWsmDeleteWorkspace() function requires a widget. A gadget (or unrealized widget) is not acceptable for the widget argument. do not try to sneak one in, bestie ๐
DtWsmDeleteWorkspace() sends a message to the CDE workspace manager, dtwm(1), to delete the workspace. If the workspace name is not valid, no action is taken and the workspace manager reports no error.
warning bestie: invalid workspace name = no action, and the workspace manager reports no error. itโs giving silent treatment ๐
๐ง ARGUMENTS ๐ง
widgetโ a realized widget. fr fr, it has to be realized; a gadget or unrealized widget is not acceptable here ๐workspaceโ the name of the workspace (in X atom form) to delete โจ
๐ RETURN VALUE ๐
The function returns Success (0) when it succeeds, and non-zero when it fails. Note that these are not the same values _DtWsmDeleteWorkspace returns. yes, the underscore one is a different vibe โ do not mix them up ๐
๐ 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 footer, bestie: DtWsmDeleteWorkspace(API) ๐ซถโจ๐
๐ฆ 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