To participate in the editres protocol, applications which are not based
on the Athena widget set should include the header file
<X11/Xmu/Editres.h
>
and link against the libXmu library.
To participate in the editres protocol, Xt applications which do not rely on the Athena widget set should register the editres protocol handler on each shell widget in the application, specifying an event mask of 0, nonmaskable events, and client data as NULL:
XtAddEventHandler(shell, (EventMask) 0, True, _XEditResCheckMessages, NULL);
XtAddEventHandler(shell, (EventMask) 0, True, _XEditResCheckMessages, NULL);