XChangeSaveSet(3)
β¨ XChangeSaveSet, XAddToSaveSet, XRemoveFromSaveSet β¨
okay so bestie, welcome to the XLIB FUNCTIONS manual page for these three. We're in section 3, and the whole group-chat mission is changing a client's save-set. Let's get into it π
πΈ NAME πΈ
XChangeSaveSet, XAddToSaveSet, XRemoveFromSaveSet β change a client's save set. That's the name block, no cap π
π SYNTAX π
int XChangeSaveSet(Display *display, Window w, int change_mode);
int XAddToSaveSet(Display *display, Window w);
int XRemoveFromSaveSet(Display *display, Window w);
π¦ ARGUMENTS π¦
change_modeβ Specifies the mode. You can passSetModeInsertorSetModeDelete. So it's literally the "insert or delete?" vibe check β¨displayβ Specifies the connection to the X server. Your server link, your main-character connector πwβ Specifies the window that you want to add or delete from the client's save-set. The window in question, aka the one catching these changes πͺ
π DESCRIPTION π
Depending on the specified mode, XChangeSaveSet either inserts or deletes the specified window from the client's save-set. The specified window must have been created by some other client, or a BadMatch error results. XChangeSaveSet can generate BadMatch, BadValue, and BadWindow errors. It's giving "mode decides everything," and we respect it π
XAddToSaveSet adds the specified window to the client's save-set. The specified window must have been created by some other client, or a BadMatch error results. XAddToSaveSet can generate BadMatch and BadWindow errors. It's the "add to the save-set" bestie β lowkey obvious, but we said it π«Ά
XRemoveFromSaveSet removes the specified window from the client's save-set. The specified window must have been created by some other client, or a BadMatch error results. XRemoveFromSaveSet can generate BadMatch and BadWindow errors. Yes, same "some other client" rule applies. Periodt π
The specified window must have been created by some other client, or a BadMatch error results. That's the rule for all three functions, bestie β don't forget it π
π₯ DIAGNOSTICS π₯
BadMatchβ Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request. It's the "right shape, wrong vibe" error πBadValueβ Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.BadWindowβ A value for aWindowargument does not name a definedWindow. Basically the window said "not found, bestie" π
π SEE ALSO π
XReparentWindow(3)Xlib - C Language X Interface
mwah π this page is from X Version 11, libX11 1.8.14, and yes it's the XChangeSaveSet(3) page. bye bestie, go change that save-set responsibly π«Άβ¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms