- test if a window is created by a trusted client
#include <X11/extensions/Xtsol.h> Bool XTSOLIsWindowTrusted(display, window); Display *display; Window window;
XTSOLIsWindowTrusted() tests if a window is created by a trusted client. The window created by a trusted client has a special bit turned on. The client does not require any privilege to perform this operation.
Specifies a pointer to the Display structure; returned from XOpenDisplay().
Specifies the ID of the window to be tested.
See attributes(5) for descriptions of the following attributes:
If the window is created by a trusted client.
Not a valid window.