Common Desktop Environment: Desktop KornShell User's Guide

Workspace Callback Context Variables

An application has the ability to register a callback function that is invoked whenever the user changes to a new workspace. When the callback is invoked, two special environment variables are set, and can be accessed by the shell callback code:

CB_WIDGET

Set to the ID for the widget that is invoking the callback.

CB_CALL_DATA

Set to the X atom that uniquely identifies the new workspace. This can be converted to its string representation, using the XmGetAtomName command.