Skip to content

two-step: bgrt: Add workaround for desktops which do not use the golden ratio

On desktops (no panel) we normally do not use the BGRT provided xoffset and yoffset because the resolution they are intended for may be differtent then the resolution of the current display.

On some desktops (no panel) the image gets centered not only horizontally, but also vertically. In this case our default of using the golden ratio for the vertical position causes the BGRT image to jump.

To avoid this this commits adds an extra check to see if the provided xoffset and yoffset perfectly center the image and in that case uses them.

An example of a system needing this workaround is the Minix Neo Z83-4.

Signed-off-by: Hans de Goede hdegoede@redhat.com

Merge request reports