---
name: "XSetWMClientMachine"
section: "3"
platform: "linux"
package: "libx11"
version: "1.8.14-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/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)](/XAllocClassHint/3.md), [**XAllocIconSize**(3)](/XAllocIconSize/3.md), [**XAllocSizeHints**(3)](/XAllocSizeHints/3.md), [**XAllocWMHints**(3)](/XAllocWMHints/3.md), [**XSetCommand**(3)](/XSetCommand/3.md), [**XSetTransientForHint**(3)](/XSetTransientForHint/3.md), [**XSetTextProperty**(3)](/XSetTextProperty/3.md), [**XSetWMColormapWindows**(3)](/XSetWMColormapWindows/3.md), [**XSetWMIconName**(3)](/XSetWMIconName/3.md), [**XSetWMName**(3)](/XSetWMName/3.md), [**XSetWMProperties**(3)](/XSetWMProperties/3.md), [**XSetWMProtocols**(3)](/XSetWMProtocols/3.md), [**XStringListToTextProperty**(3)](/XStringListToTextProperty/3.md)\
 *Xlib - C Language X Interface*
