![]() |
![]()
| ![]() |
![]()
NAMEDtWsmGetWorkspaceInfo — get detailed workspace information SYNOPSIS#include &<Dt/Wsm.h> int DtWsmGetWorkspaceInfo( Display *display, Window root, Atom aWorkspace, DtWsmWorkspaceInfo **ppWsInfo); DESCRIPTIONThe DtWsmGetWorkspaceInfo function works with the XCDE workspace manager, dtwm(1), and returns detailed information on a specific workspace. The display argument is the X display. The root argument is the root window of the screen of interest. The aWorkspace argument is the workspace name (converted to an X atom). The *ppWsInfo argument is the address of a variable to receive the returned pointer to the workspace information data. The DtWsmWorkspaceInfo structure contains at least the following members:
RETURN VALUEUpon successful completion, the DtWsmGetWorkspaceInfo function returns Success and the workspace manager returns in *ppWsInfo a pointer to a DtWsmInfo structure that contains information about the workspace aWorkspace; otherwise, it returns a value not equal to Success. APPLICATION USAGEIf the DtWsmGetWorkspaceInfo function is not successful, failure may be due to a memory allocation error or failure to find the correct workspace information (that is, the XCDE workspace manager, dtwm(1), is not running). The application must use the DtWsmFreeWorkspaceInfo(3) function to free the data returned in *ppWsInfo. The *backdropWindows pointer may be useful for applications that are interested in some events on the root window. Since the backdrop covers the root window, the backdrop catches the button events before they reach the root. SEE ALSODt/Wsm.h - DtWsm(5), dtwm(1), DtWsmGetWorkspaceList(3), DtWsmFreeWorkspaceInfo(3).
|