XSetCommand() XSetCommand()
Name
XSetCommand - set the XA_WM_COMMAND atom (command-line arguments).
Synopsis
XSetCommand(display, w, argv, argc)
Display *display;
Window w;
char **argv;
int argc;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
w Specifies the ID of the window whose atom is to be set.
argv Specifies a pointer to the command and arguments used to start the application.
argc Specifies the number of arguments.
Description
XSetCommand() is used by the application to set the XA_WM_COMMAND property for the window manager with the command and its arguments used
to invoke the application. If the string is not in the Host Portable Character Encoding, the result is implementation-dependent.
XSetCommand() creates a zero-length property if argc is zero.
Use this command only if not calling XSetStandardProperties() or XSetWMProperties().
Errors
BadAlloc
BadWindow
See Also
XFetchName(), XGetClassHint(), XGetCommand(), XGetIconName(), XGetIconSizes(), XGetNormalHints(), XGetSizeHints(), XGetTransientForHint(),
XGetWMHints(), XGetZoomHints(), XSetClassHint(), XSetIconName(), XSetIconSizes(), XSetNormalHints(), XSetSizeHints(), XSetTransient-
ForHint(), XSetWMHints(), XSetZoomHints(), XStoreName().
Xlib - Window Manager Hints XSetCommand()