---
name: "XSetWMClientMachine"
section: "3"
platform: "linux"
package: "libx11"
version: "1.8.14-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://carta.tech/man/XSetWMClientMachine"
---

# XSetWMClientMachine(3)

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**(3)](/man/XAllocClassHint/3.md), [**XAllocIconSize**(3)](/man/XAllocIconSize/3.md), [**XAllocSizeHints**(3)](/man/XAllocSizeHints/3.md), [**XAllocWMHints**(3)](/man/XAllocWMHints/3.md), [**XSetCommand**(3)](/man/XSetCommand/3.md), [**XSetTransientForHint**(3)](/man/XSetTransientForHint/3.md), [**XSetTextProperty**(3)](/man/XSetTextProperty/3.md), [**XSetWMColormapWindows**(3)](/man/XSetWMColormapWindows/3.md), [**XSetWMIconName**(3)](/man/XSetWMIconName/3.md), [**XSetWMName**(3)](/man/XSetWMName/3.md), [**XSetWMProperties**(3)](/man/XSetWMProperties/3.md), [**XSetWMProtocols**(3)](/man/XSetWMProtocols/3.md), [**XStringListToTextProperty**(3)](/man/XStringListToTextProperty/3.md)\
 *Xlib - C Language X Interface*
