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

# XmMainWindowSep1(3)

A MainWindow function that returns the widget ID of the first Separator

## NAME

**XmMainWindowSep1** — A MainWindow function that returns the widget ID of the first Separator

## SYNOPSIS

```
#include <Xm/MainW.h>
Widget XmMainWindowSep1(
Widget widget);
```

## DESCRIPTION

**XmMainWindowSep1** returns the widget ID of the first Separator in the MainWindow. The first Separator is located between the MenuBar and the Command widget. This Separator is visible only when **XmNshowSeparator** is True.

**NOTE:** **XmMainWindowSep1** is obsolete and exists for compatibility with previous releases. Use **XtNameToWidget** instead. Pass a MainWindow variable as the first argument to **XtNameToWidget** and pass **Separator1** as the second argument.

- *widget*

  Specifies the MainWindow widget ID

For a complete definition of MainWindow and its associated resources, see [**XmMainWindow**(3)](/XmMainWindow/3.md).

## RETURN

Returns the widget ID of the first Separator.

## RELATED

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