XSetWMName, XGetWMName, XStoreName, XFetchName - set or
       read a window's WM_NAME property


SYNTAX

       void XSetWMName(display, w, text_prop)
             Display *display;
             Window w;
             XTextProperty *text_prop;

       Status XGetWMName(display, w, text_prop_return)
             Display *display;
             Window w;
             XTextProperty *text_prop_return;

       XStoreName(display, w, window_name)
             Display *display;
             Window w;
             char *window_name;

       Status XFetchName(display, w, window_name_return)
             Display *display;
             Window w;
             char **window_name_return;


ARGUMENTS

       display   Specifies the connection to the X server.

       text_prop Specifies the XTextProperty structure to be
                 used.

       text_prop_return
                 Returns the XTextProperty structure.

       w         Specifies the window.

       window_name
                 Specifies the window name, which should be a
                 null-terminated string.

       window_name_return
                 Returns the window name, which is a null-termi-
                 nated string.


DESCRIPTION

       The XSetWMName convenience function calls XSetTextProperty
       to set the WM_NAME property.

       The XGetWMName convenience function calls XGetTextProperty
       to obtain the WM_NAME property.  It returns a nonzero sta-
       tus on success; otherwise, it returns a zero status.

       The XStoreName function assigns the name passed to win-
       returns zero.  If the WM_NAME property has not been set
       for this window, XFetchName sets window_name_return to
       NULL.  If the data returned by the server is in the Latin
       Portable Character Encoding, then the returned string is
       in the Host Portable Character Encoding.  Otherwise, the
       result is implementation-dependent.  When finished with
       it, a client must free the window name string using XFree.

       XFetchName can generate a BadWindow error.


PROPERTIES

       WM_NAME   The name of the application.


DIAGNOSTICS

       BadAlloc  The server failed to allocate the requested
                 resource or server memory.

       BadWindow A value for a Window argument does not name a
                 defined Window.


SEE ALSO

       XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocSize-
       Hints(3X11), XAllocWMHints(3X11), XFree(3X11), XSetCom-
       mand(3X11), XSetTransientForHint(3X11), XSetTextProp-
       erty(3X11), XSetWMClientMachine(3X11), XSetWMColormapWin-
       dows(3X11), XSetWMIconName(3X11), XSetWMProperties(3X11),
       XSetWMProtocols(3X11), XStringListToTextProperty(3X11)
       Xlib - C Language X Interface



X Version 11               Release 6.4                          1