mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
desktop-shell: Make backgrounds fully opaque
Non-opaque backgrounds don't make sense, and cause rendering problems. Silently set backgrounds fully opaque, and remove any mention of alpha from the man page. Kiosk-shell already implicitly forces opaque backgrounds. Old weston.ini with FF for alpha will always continue to work. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
68761d3f11
commit
264c205add
3 changed files with 6 additions and 3 deletions
|
|
@ -1191,6 +1191,9 @@ background_create(struct desktop *desktop, struct output *output)
|
|||
weston_config_section_get_color(s, "background-color",
|
||||
&background->color, 0x00000000);
|
||||
|
||||
/* Backgrounds must be fully opaque. */
|
||||
background->color |= 0xFF000000;
|
||||
|
||||
weston_config_section_get_string(s, "background-type",
|
||||
&type, "tile");
|
||||
if (type == NULL) {
|
||||
|
|
|
|||
|
|
@ -401,9 +401,9 @@ enough to cover the output, and centers it. The image ends up cropped from
|
|||
left and right, or top and bottom, if the aspect ratio does not match the
|
||||
output. Tile repeats the background image to fill the output.
|
||||
.TP 7
|
||||
.BI "background-color=" 0xAARRGGBB
|
||||
.BI "background-color=" 0xRRGGBB
|
||||
sets the color of the background (unsigned integer). The hexadecimal
|
||||
digit pairs are in order alpha, red, green, and blue.
|
||||
digit pairs are in order red, green, and blue.
|
||||
.TP 7
|
||||
.BI "clock-format=" format
|
||||
sets the panel clock format (string). Can be
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
[shell]
|
||||
background-image=/usr/share/backgrounds/gnome/Aqua.jpg
|
||||
background-color=0xff002244
|
||||
background-color=0x002244
|
||||
background-type=tile
|
||||
clock-format=minutes
|
||||
panel-color=0x90ff0000
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue