DTWSMSETCURRENTWORKSPACE(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’« 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 πŸ¦‹


πŸŽ€ 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