XSaveContext

Syntax

int XSaveContext(display, rid, context, data)
      Display *display;	
      XID rid;
      XContext context;
      XPointer data;

Arguments

display Specifies the connection to the X server.
rid Specifies the resource ID with which the data is associated.
context Specifies the context type to which the data belongs.
data Specifies the data to be associated with the window and type.

Description

If an entry with the specified resource ID and type already exists, XSaveContext() overrides it with the specified context. The XSaveContext() function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOMEM (out of memory).

See also

XDeleteContext(), XFindContext(), XUniqueContext(), "Using the Context Manager".
Christophe Tronche, ch@tronche.com