al_x_set_initial_icon(3alleg5)

al_x_set_initial_icon3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro_x.h>
bool al_x_set_initial_icon(ALLEGRO_BITMAP *bitmap)

Overview

On some window managers (notably Ubuntu’s Unity) al_set_display_icon doesn’t work and you need to use a .desktop file. But with this function you can set an icon before calling al_create_display. This works by setting the icon before XMapWindow.

Since

5.2.3

[Unstable API]: New API.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.