---
name: "xosd_set_pos"
section: "3"
platform: "linux"
package: "xosd"
version: "2.2.14-12"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/xosd_set_pos"
---

# xosd\_set\_pos(3)

Change the position of the XOSD window

## NAME

xosd\_set\_pos - Change the position of the XOSD window

## SYNOPSIS

**#include \<xosd.h\>**

**int xosd\_set\_pos (xosd\*** *osd***, xosd\_pos** *pos***);**

## DESCRIPTION

**xosd\_set\_pos** changes the position of the XOSD window, which was initially set when **xosd\_init**(3) was called.

## ARGUMENTS

- *osd*

  The on-screen display object to act on.

- *pos*

  One of **XOSD\_top** or **XOSD\_bottom** (for the top or the bottom of the screen respectively).

## RETURN VALUE

On success, a zero is returned. On error, -1 is returned.

## SEE ALSO

**xosd\_init**(3), **xosd\_set\_offset**(3).
