These routines makes the specified window the trusted path window and test whether the specified window is the trusted path window. Refer to the XTSOLMakeTPWindow(3) man page.
void XTSOLMakeTPWindow(Display *dpy, Window win); Bool XTSOLIsWindowTrusted(Display *display, Window win);