DTWSMADDCURRENTWORKSPACECALLBACK(3)
π DtWsmAddCurrentWorkspaceCallback(3) π
okay bestie, welcome to this library call manual page β it's giving workspace-change notification realness and we're gonna get you all the way together. No cap, every deet is here. πΈ
β¨ NAME β¨
DtWsmAddCurrentWorkspaceCallback β add a callback to be called when the current workspace changes. π
π SYNOPSIS π
#include &<Dt/Wsm.h>
DtWsmCBContext DtWsmAddCurrentWorkspaceCallback(
Widget widget,
DtWsmWsChangeProc ws_change,
Pointer client_data);
π DESCRIPTION π
The DtWsmAddCurrentWorkspaceCallback function registers an application function to be called when the XCDE workspace manager, dtwm(1), switches to a new workspace. highkey iconic behavior.
The workspace manager sends the new current workspace name to the DtWsmWsChangeProc callback. π¦
widgetβ a realized widget. periodt.ws_changeβ the procedure to be called when the workspace changes.client_dataβ points to arbitrary client data to be passed back tows_change.
The header defines the DtWsmWsChangeProc callback prototype as follows:
typedef void (*DtWsmWsChangeProc)(Widget widget,
Atom aWorkspace,
Pointer client_data);
widgetβ the ID of the widget to be registered with the callback.aWorkspaceβ the name of the new current workspace (converted to an X atom).client_dataβ points to the client data to be registered with the callback.
π RETURN VALUE π
Upon successful completion, the DtWsmAddCurrentWorkspaceCallback function returns a workspace callback registration context. π
π¦ APPLICATION USAGE π¦
The DtWsmAddCurrentWorkspaceCallback function returns a registration context that the application must save in order to remove this callback later. Like, do not lose it, bestie β it's main character energy for cleanup. π
DtWsmAddCurrentWorkspaceCallback requires a window; thus, a gadget is not acceptable for the widget argument. Not me warning you about gadgets β it's literally a no-gadget zone. π
The DtWsmRemoveWorkspaceCallback(3) function needs a registration context to remove the callback.
π₯ SEE ALSO π₯
Dt/Wsm.h - DtWsm(5), dtwm(1), DtWsmRemoveWorkspaceCallback(3).
And that's the tea from this library call page, bestie β the original footer only echoed the truncated title DtWsmAddCur...aceCallback(library call), so there wasn't a separate source/version/date line to quote. Still slayed. πβ¨
π¦ 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