desktop-shell: Fix background image

Commit 264c205add ignored the fact that a
background color of 0 should fall back to the background image, and
broke that case.

Fixes 264c205add
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2024-12-17 09:31:16 -06:00
parent 16e5406877
commit 5b35631545

View file

@ -1192,7 +1192,8 @@ background_create(struct desktop *desktop, struct output *output)
&background->color, 0x00000000);
/* Backgrounds must be fully opaque. */
background->color |= 0xFF000000;
if (background->color != 0)
background->color |= 0xFF000000;
weston_config_section_get_string(s, "background-type",
&type, "tile");