XSetWMIconName()XSetWMIconName()NameXSetWMIconName – set a window's XA_WM_ICON_NAME property.
Synopsis
void XSetWMIconName(display, w, text_prop)
Display *display;
Window w;
XTextProperty *text_prop;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
w Specifies the window.
text_prop Specifies the XTextProperty structure to be used.
Availability
Release 4 and later.
DescriptionXSetWMIconName() performs an XSetTextProperty() to set the
XA_WM_ICON_NAME property of the specified window. XSetWMIconName()
supersedes XSetIconName().
This is usually called by an application to set the property for the
window manager. The name should be short, since it is to be displayed
in association with an icon.
XSetStandardProperties() (in Release 3) or XSetWMProperties() (in
Release 4 and later) also set this property.
For more information, see Volume One, Chapter 12, Interclient Communi‐
cation.
Structures
typedef struct {
unsigned char *value; /* same as Property routines */
Atom encoding; /* prop type */
int format; /* prop data format: 8, 16, or 32 */
unsigned long nitems; /* number of data items in value */
} XTextProperty;
See AlsoXGetWMIconName(), XGetWMName(), XSetWMName(), XSetWMProperties().
Xlib - Window Manager Hints XSetWMIconName()