DTWSMSETCURRENTWORKSPACE(3)
π« NAME π«
okay bestie, this is the DtWsmSetCurrentWorkspace(library call) page β it's literally about setting the current workspace π
πΈ SYNOPSIS πΈ
#include &<Dt/Wsm.h>
int DtWsmSetCurrentWorkspace(
Widget widget,
Atom aWorkspace);
β¨ DESCRIPTION β¨
The DtWsmSetCurrentWorkspace function works with the XCDE workspace manager, dtwm(1), and sets the current workspace. Applications can use this function to switch from the current workspace to another workspace. slay π«Ά
The widget argument is a realized widget on the screen of interest. no cap.
The aWorkspace argument is the name β in X atom form β of the workspace to be made current. yep, atom form, iykyk β¨
π RETURN VALUE π
Upon successful completion, the DtWsmSetCurrentWorkspace function returns Success; otherwise, it returns a value not equal to Success. simple as that, bestie π
π APPLICATION USAGE π
If the DtWsmSetCurrentWorkspace function is not successful, the most likely reason for failure is that the XCDE workspace manager, dtwm(1), is not running. lowkey the vibe check failed because dtwm(1) wasn't there π
The DtWsmSetCurrentWorkspace function requires a widget. A gadget is not acceptable for the widget argument. not me stressing this, but fr fr: widget yes, gadget no π
DtWsmSetCurrentWorkspace sends a message to the XCDE workspace manager, dtwm(1), to switch workspaces. If the workspace name is not valid, no action is taken and the workspace manager reports no error. iconic behavior, honestly β invalid name, no switch, no error report π
β οΈ bestie, remember: no valid workspace name = no action, and the workspace manager reports no error. don't expect a dramatic error message, because it's giving silence πΈ
π¦ SEE ALSO π¦
Dt/Wsm.h-DtWsm(5),dtwm(1),DtWsmGetCurrentWorkspace(3).
π and that's the whole page, bestie β footer energy is just DtWsmSetCurrentWorkspace(library call), so we're signing off from the library-call corner of the manual π
π¦ 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