DTWSMREMOVEWORKSPACEFUNCTIONS(3)
π
DtWsmRemoveWorkspaceFunctions β a library call moment, bestie
Okay so picture this: it's a library call, right, and it's about taking a window's workspace functions away. That's the whole gig. Let's get into it β¨
πΈ NAME πΈ
DtWsmRemoveWorkspaceFunctions β literally removes a window's workspace functions. That's it, that's the vibe π
π¦ SYNOPSIS π¦
#include <Dt/Wsm.h>
void DtWsmRemoveWorkspaceFunctions(
Display *display,
Window window);
π DESCRIPTION π
So the DtWsmRemoveWorkspaceFunctions function does exactly what it says on the tin: it removes a window's workspace functions. Iconic, no notes π
Now here's the tea β when DtWsmRemoveWorkspaceFunctions removes those workspace functions, the window menu that the XCDE workspace manager, dtwm(1), displays for that window? It just doesn't have the entries anymore. You know the ones:
- the entry that lets the window occupy a different set of workspaces
- the entry that lets it occupy all the workspaces
- the entry that lets it be removed from the current workspace
Poof. Gone. Not in the menu. The menu is not giving workspace-flexibility energy anymore, and honestly? That was the point π«Ά
A couple of arguments to keep in your notes app:
- The
displayargument is the X display. You know her, you love her. - The
windowargument is the window that's getting its workspace functions disabled. Sorry bestie, it's not personal π
β RETURN VALUE β
The DtWsmRemoveWorkspaceFunctions function returns no value. Nothing. Nada. It's giving silent-but-confident main character energy β it does the thing and doesn't need a receipt π
π§ APPLICATION USAGE π§
Listen up, because this part is so important, like actually important:
The application must call DtWsmRemoveWorkspaceFunctions before the window is mapped.
Fr fr. The XCDE workspace manager, dtwm(1), only looks at the workspace function information at the time the workspace manager manages the window. That's the only moment it checks. It's not coming back for a second look, iykyk π
So if the XCDE workspace manager, dtwm(1), is already managing the window? Then you've got a little three-step choreography, and you gotta do all of it:
- The application must withdraw the window (see
XWithdrawWindow(3)) - Then remove the workspace functions
- Then map the window once again
Withdraw, remove, remap. Slay in sequence, not out of order π
π₯ SEE ALSO π₯
And that's the whole page, bestie! This little library call gem is brought to you by the DtWsmRemov...ceFunctions(library call) crew β mwah, love her, go remove some workspace functions responsibly πππ¦
π¦ 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