XAddToSaveSet() XAddToSaveSet()
Name
XAddToSaveSet - add a window to the client's save-set.
Synopsis
XAddToSaveSet(display, w)
Display *display;
Window w;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
w Specifies the ID of the window you want to add to the client's save-set.
Description
XAddToSaveSet() adds the specified window to the client's save-set.
The save-set is a safety net for windows that have been reparented by the window manager, usually to provide a titlebar or other decora-
tions for each application. When the window manager dies unexpectedly, the windows in the save-set are reparented to their closest living
ancestor, so that they remain alive. See Volume One, Chapter 15, Other Programming Techniques, for more information about save-sets.
Use XRemoveFromSaveSet() to remove a window from the client's save-set.
Errors
BadMatch w not created by some other client.
BadWindow
See Also
XChangeSaveSet(), XRemoveFromSaveSet().
Xlib - Save Set XAddToSaveSet()