The convenience function provides a single programming interface for setting those essential window properties that are used for communicating with other clients (particularly window and session managers).
If the window_name argument is non-NULL, calls which in turn, sets the WM_NAME property (see section 14.1.4). If the icon_name argument is non-NULL, calls which sets the WM_ICON_NAME property (see section 14.1.5). If the argv argument is non-NULL, calls which sets the WM_COMMAND property (see section 14.2.1). Note that an argc of zero is allowed to indicate a zero-length command. Note also that the hostname of this machine is stored using (see section 14.2.2).
If the normal_hints argument is non-NULL, calls which sets the WM_NORMAL_HINTS property (see section 14.1.7). If the wm_hints argument is non-NULL, calls which sets the WM_HINTS property (see section 14.1.6).
If the class_hints argument is non-NULL, calls which sets the WM_CLASS property (see section 14.1.8). If the res_name member in the structure is set to the NULL pointer and the RESOURCE_NAME environment variable is set, then the value of the environment variable is substituted for res_name. If the res_name member is NULL, the environment variable is not set, and argv and argv[0] are set, then the value of argv[0], stripped of any directory prefixes, is substituted for res_name.
The and convenience functions provide a simple programming interface for setting those essential window properties that are used for communicating with other clients (particularly window and session managers).
If the window_name argument is non-NULL, they set the WM_NAME property. If the icon_name argument is non-NULL, they set the WM_ICON_NAME property. The window_name and icon_name arguments are null-terminated strings, for in the encoding of the current locale, for in UTF-8 encoding. If the arguments can be fully converted to the STRING encoding, the properties are created with type ``STRING''; otherwise, the arguments are converted to Compound Text, and the properties are created with type ``COMPOUND_TEXT''.
If the normal_hints argument is non-NULL, and call which sets the WM_NORMAL_HINTS property (see section 14.1.7). If the wm_hints argument is non-NULL, and call which sets the WM_HINTS property (see section 14.1.6).
If the argv argument is non-NULL, and set the WM_COMMAND property from argv and argc. An argc of zero indicates a zero-length command.
The hostname of the machine is stored using (see section 14.2.2).
If the class_hints argument is non-NULL, and set the WM_CLASS property. If the res_name member in the structure is set to the NULL pointer and the RESOURCE_NAME environment variable is set, the value of the environment variable is substituted for res_name. If the res_name member is NULL, the environment variable is not set, and argv and argv[0] are set, then the value of argv[0], stripped of any directory prefixes, is substituted for res_name.
It is assumed that the supplied class_hints.res_name and argv, the RESOURCE_NAME environment variable, and the hostname of the machine are in the encoding of the current locale. The corresponding WM_CLASS, WM_COMMAND, and WM_CLIENT_MACHINE properties are typed according to the local host locale announcer. No encoding conversion is performed for these strings prior to storage in the properties.
For clients that need to process the property text in a locale, and set the WM_LOCALE_NAME property to be the name of the current locale. The name is assumed to be in the Host Portable Character Encoding and is converted to STRING for storage in the property.
and can generate and errors.
The function is an XFree86 extension introduced in XFree86 4.0.2. Its presence is indicated by the macro