---
name: "XmIsMotifWMRunning"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmIsMotifWMRunning"
---

# XmIsMotifWMRunning(3)

A function that determines whether the window manager is running

## NAME

**XmIsMotifWMRunning** — A function that determines whether the window manager is running

## SYNOPSIS

```
#include <Xm/Xm.h>
Boolean XmIsMotifWMRunning(
Widget shell);
```

## DESCRIPTION

**XmIsMotifWMRunning** lets a user know whether the Motif Window Manager is running on a screen that contains a specific widget hierarchy. This function first sees whether the **\_MOTIF\_WM\_INFO** property is present on the root window of the shell's screen. If it is, its window field is used to query for the presence of the specified window as a child of root.

- *shell*

  Specifies the shell whose screen will be tested for **mwm**'s presence.

## RETURN

Returns True if MWM is running.
