XSetClassHint

Syntax

XSetClassHint(display, w, class_hints)
      Display *display;
      Window w;
      XClassHint *class_hints;

Arguments

display Specifies the connection to the X server.
w Specifies the window.
class_hints Specifies the XClassHint structure that is to be used.

Description

The XSetClassHint() function sets the class hint for the specified window. If the strings are not in the Host Portable Character Encoding, the result is implementation dependent.

XSetClassHint() 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(), XFree(), XGetClassHint(), XSetCommand(), XSetTextProperty(), XSetTransientForHint(), XSetWMClientMachine(), XSetWMColormapWindows(), XSetWMIconName(), XSetWMName(), XSetWMNormalHints(), XSetWMProperties(), XSetWMProtocols(), XSetWMSizeHints(), XStringListToTextProperty(), "Setting and Reading the WM_CLASS Property".
Christophe Tronche, ch@tronche.com