Use DtWsmRemoveWorkspaceFunctions().
DtWsmRemoveWorkspaceFunctions(XtDisplay(toplevel), XtWindow(toplevel));
where:
XtDisplay(toplevel) is the X display.
XtWindow(toplevel) is the window for which workspace movement is to be prevented.