XFindContext()XFindContext()NameXFindContext – get data from the context manager (not graphics con‐
text).
Synopsis
int XFindContext(display, rid, context, data_return)
Display *display;
XID rid;
XContext context;
XPointer *data_return;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
rid Specifies the resource ID with which the data is associated.
context Specifies the context type to which the data corresponds.
data_return
Returns the data.
Returns
XCNOENT (a non-zero error code) if the context could not be found, or
zero on success.
DescriptionXFindContext() gets data that has been assigned to the specified
resource ID. The context manager is used to associate data with win‐
dows for use within an application.
This application should have called XUniqueContext() to get a unique
ID, and then XSaveContext() to save the data into the array. The mean‐
ing of the data is indicated by the context ID, but is completely up to
the client.
XFindContext() returns XCNOENT (a non-zero error code) if the context
could not be found and zero (0) otherwise.
For more information on the context manager, see Volume One, Chapter
15, Other Programming Techniques.
Structures
typedef int XContext;
See AlsoXDeleteContext(), XSaveContext(), XUniqueContext().
Xlib - Context Manager XFindContext()