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

# XmSetMenuCursor(3)

A function that modifies the menu cursor for a client

## NAME

**XmSetMenuCursor** — A function that modifies the menu cursor for a client

## SYNOPSIS

```
#include <Xm/Xm.h>
void XmSetMenuCursor(
Display * display,
Cursor cursorId);
```

## DESCRIPTION

**XmSetMenuCursor** programmatically modifies the menu cursor for a client; after the cursor has been created by the client, this function registers the cursor with the menu system. After calling this function, the specified cursor is displayed whenever this client displays a Motif menu on the indicated display. The client can then specify different cursors on different displays.

This function sets the menu cursor for all screens on the display. **XmSetMenuCursor** is obsolete and exists for compatibility with previous releases. Instead of using this function, provide initial values or call **XtSetValues** for the XmScreen resource **XmNmenuCursor**.

- *display*

  Specifies the display to which the cursor is to be associated

- *cursorId*

  Specifies the **X** cursor ID

## RELATED

[**XmScreen**(3)](/XmScreen/3.md).
