xosd_set_shadow_offset(3)

xosd_set_shadow_offset3

Change the shadow-offset of the xosd window

Usage

#include <xosd.h>

int xosd_set_shadow_offset (xosd* osd, int shadow_offset);

Overview

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.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–6.0
  2. 7–Arch

From xosd 2.2.14-12 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.