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 pass SetModeInsert or SetModeDelete. 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 a Window argument does not name a defined Window. Basically the window said "not found, bestie" πŸ™ˆ

🐚 SEE ALSO 🐚


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