---
name: "xosd_set_shadow_offset"
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_shadow_offset"
---

# xosd\_set\_shadow\_offset(3)

Change the shadow-offset of the XOSD window

## NAME

xosd\_set\_shadow\_offset - Change the shadow-offset of the XOSD window

## SYNOPSIS

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

**int xosd\_set\_shadow\_offset (xosd\*** *osd***, int** *shadow\_offset***);**

## DESCRIPTION

To increase readability (and 'cos it looks cool) a black shadow is drawn beneath the main XOSD window. **xosd\_set\_shadow\_offset** changes the size of this shadow by altering how many pixels the shadow is offset (to the bottom-right) from the main display. One to four pixels usually is sufficient to get a good effect.

## ARGUMENTS

- *osd*

  The on-screen display object to act on.

- *shadow\_offset*

  Offset of black shadow from main text, in pixels.

## RETURN VALUE

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

## SEE ALSO

**xosd\_init**(3), [**xosd\_display**(3)](/xosd_display/3.md).
