DTWSMGETCURRENTWORKSPACE(3)
π DtWsmGetCurrentWorkspace π
okay bestie, welcome to the DtWsmGetCurrentWorkspace(library call) page β yes, thatβs the manual name, and weβre being cute about it π
. This function is giving βask the workspace manager where we areβ energy, and honestly? iconic.
πΈ NAME πΈ
DtWsmGetCurrentWorkspace β get the current workspace.
β¨ SYNOPSIS β¨
#include &<Dt/Wsm.h>
int DtWsmGetCurrentWorkspace(
Display *display,
Window root,
Atom *paWorkspace);
π¦ DESCRIPTION π¦
okay so DtWsmGetCurrentWorkspace works with the XCDE workspace manager, dtwm(1), and returns the name of the current workspace β converted to an X atom, no cap. π«Ά
The arguments are lowkey simple, and I need you to know them:
displayis the X display.rootis the root window of the screen of interest.paWorkspaceis the address of an atom to receive the current workspace identifier.
π RETURN VALUE π
Upon successful completion, DtWsmGetCurrentWorkspace returns Success, and the atom identifying the current workspace is returned in paWorkspace; otherwise, it returns a value not equal to Success. periodt. π
π APPLICATION USAGE π
If DtWsmGetCurrentWorkspace is not successful, the most likely reason for failure is that the XCDE workspace manager, dtwm(1), is not running. like, thatβs the likely culprit β not me making up extra lore, fr fr. π
vibe check: if this call flops, check whether dtwm(1) is actually running before spiraling.
π₯ SEE ALSO π₯
byeee bestie π«Ά the footer/source-version stamp says DtWsmGetCurrentWorkspace(library call), and the date? thereβs literally no date line in the footer, so weβre not inventing one π
β¨
π¦ 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