Solaris Common Desktop Environment: Programmer's Guide

To Monitor Workspace Switching

    Use DtWsmAddCurrentWorkspaceCallback().

    In the demo program wsinfo.c, this function is called after the top-level widget is realized.

    DtWsmAddCurrentWorkspaceCallback (toplevel, wschangecb, NULL);

    where

    • toplevel is the application's top level widget.

    • wschangecb() is the name of the function to be called.

    • NULL is the parameter for client data to be passed to the callback. In this case, no data is passed.