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

# XmImUnsetFocus(3)

An input manager function that notifies an input method that a widget has lost input focus

## NAME

**XmImUnsetFocus** — An input manager function that notifies an input method that a widget has lost input focus

## SYNOPSIS

```
#include <Xm/XmIm.h>
void XmImUnsetFocus(
Widget widget);
```

## DESCRIPTION

**XmImUnsetFocus** unsets a specified widget's focus, then notifies the input manager that the specified widget has lost its input focus.

Note that the Text, TextField, and List widgets already call the **XmImUnsetFocus** internally. Therefore, further calls to the **XmImUnsetFocus** function for those widgets are unnecessary.

- *widget*

  Specifies the ID of the widget registered with the input manager

## RELATED

[**XmImSetFocusValues**(3)](/XmImSetFocusValues/3.md) and [**XmImVaSetFocusValues**(3)](/XmImVaSetFocusValues/3.md).
