---
name: "XSetWMClientMachine"
section: "3x"
platform: "linux"
package: "libx11-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XSetWMClientMachine/3x"
---

# XSetWMClientMachine(3x)

set or read a window's WM\_CLIENT\_MACHINE property

## NAME

XSetWMClientMachine, XGetWMClientMachine - set or read a window's WM\_CLIENT\_MACHINE property

## SYNTAX

void XSetWMClientMachine(Display \**display*, Window *w*, XTextProperty \**text\_prop*);

Status XGetWMClientMachine(Display \**display*, Window *w*, XTextProperty \**text\_prop\_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.

## DESCRIPTION

The *XSetWMClientMachine* convenience function calls *XSetTextProperty* to set the WM\_CLIENT\_MACHINE property.

The *XGetWMClientMachine* convenience function performs an  *XGetTextProperty* on the WM\_CLIENT\_MACHINE property. It returns a nonzero status on success; otherwise, it returns a zero status.

## PROPERTIES

- WM\_CLIENT\_MACHINE

  The string name of the machine on which the client application is running.

## SEE ALSO

XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocSizeHints(3X11), XAllocWMHints(3X11), XSetCommand(3X11), XSetTransientForHint(3X11), XSetTextProperty(3X11), XSetWMColormapWindows(3X11), XSetWMIconName(3X11), XSetWMName(3X11), XSetWMProperties(3X11), XSetWMProtocols(3X11), XStringListToTextProperty(3X11)\
 *Xlib - C Language X Interface*
