XSetWMSizeHints

Syntax

void XSetWMSizeHints(display, w, hints, property)
      Display *display;
      Window w;
      XSizeHints *hints;
      Atom property;

Arguments

display Specifies the connection to the X server.
w Specifies the window.
hints Specifies the XSizeHints structure to be used.
property Specifies the property name.

Description

The XSetWMSizeHints() function replaces the size hints for the specified property on the named window. If the specified property does not already exist, XSetWMSizeHints() sets the size hints for the specified property on the named window. The property is stored with a type of WM_SIZE_HINTS and a format of 32. To set a window's normal size hints, you can use the XSetWMNormalHints() function.

XSetWMSizeHints() can generate BadAlloc, BadAtom, and BadWindow errors.

Diagnostics

BadAlloc The server failed to allocate the requested source or server memory.
BadAtom A value for an Atom argument does not name a defined Atom.
BadWindow A value for a Window argument does not name a defined Window.

See also

XAllocClassHint(), XAllocIconSize(), XAllocSizeHints(), XAllocWMHints(), XFree(), XGetWMNormalHints(), XGetWMSizeHints(), XSetCommand(), XSetTextProperty(), XSetTransientForHint(), XSetWMClientMachine(), XSetWMColormapWindows(), XSetWMIconName(), XSetWMName(), XSetWMNormalHints(), XSetWMProperties(), XSetWMProtocols(), XStringListToTextProperty(), "Setting and Reading the WM_NORMAL_HINTS Property".
Christophe Tronche, ch@tronche.com