XSetWMName

Russell Shaw rjshaw at netspace.net.au
Sat Sep 17 02:38:53 PDT 2005


Hi,
The ICCCM is a bit unclear on what text encodings to use,
such as for XSetWMName().

http://www.x.org/X11R6.8.1/docs/ICCCM/icccm.pdf

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

http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/XSetWMName.html

ICCCM 4.1.2.1 says it is an "uninterpreted" string. Does this mean it should
be sent to the X server as 8-bit english ascii, or 32-bit unicode?

What encoding should i use for XTextProperty?

http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/converting-string-lists.html

typedef struct {
	unsigned char *value;	/* property data */
	Atom encoding;		/* type of property */
	int format;		/* 8, 16, or 32 */
	unsigned long nitems;	/* number of items in value */
} XTextProperty;

typedef enum {
	XStringStyle,		/* STRING */
	XCompoundTextStyle,	/* COMPOUND_TEXT */
	XTextStyle,		/* text in owner's encoding (current locale) */
	XStdICCTextStyle	/* STRING, else COMPOUND_TEXT */
} XICCEncodingStyle;



More information about the xorg mailing list