XStoreName
Syntax
XStoreName(display, w, window_name)
Display *display;
Window w;
char *window_name;
Arguments
display
| Specifies the connection to the X server.
|
w
| Specifies the window.
|
window_name
| Specifies the window name,
which should be a null-terminated string.
|
Description
The
XStoreName()
function assigns the name passed to window_name to the specified window.
A window manager can display the window name in some prominent
place, such as the title bar, to allow users to identify windows easily.
Some window managers may display a window's name in the window's icon,
although they are encouraged to use the window's icon name
if one is provided by the application.
If the string is not in the Host Portable Character Encoding,
the result is implementation dependent.
XStoreName()
can generate
BadAlloc
and
BadWindow
errors.
Diagnostics
BadAlloc
| The server failed to allocate the requested
source or server memory.
|
BadWindow
| A value for a Window argument does not name a defined Window.
|
See also
XAllocClassHint(),
XAllocIconSize(),
XAllocSizeHints(),
XAllocWMHints(),
XFetchName(),
XFree(),
XGetWMName(),
XSetCommand(),
XSetTextProperty(),
XSetTransientForHint(),
XSetWMClientMachine(),
XSetWMColormapWindows(),
XSetWMColormapWindows(),
XSetWMIconName(),
XSetWMIconName(),
XSetWMName(),
XSetWMProperties(),
XSetWMProtocols(),
XStringListToTextProperty(),
"
Setting and Reading Text Properties".
Christophe Tronche, [email protected]