XAddToSaveSet()XAddToSaveSet()NameXAddToSaveSet – 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.
DescriptionXAddToSaveSet() 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 decorations
for each application. When the window manager dies unexpectedly, the
windows in the save-set are reparented to their closest living ances‐
tor, so that they remain alive. See Volume One, Chapter 15, Other Pro‐
gramming 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 AlsoXChangeSaveSet(), XRemoveFromSaveSet().
Xlib - Save Set XAddToSaveSet()