wayland: Do not use compositor-provided image descriptions

When the compositor sends us an image description, we currently happily
reuse it.

However, those image descriptions may contain optional properties that
we do not handle - example: reference white level. So if we were to
reuse that image description, we would set a wrong reference white
level.

To avoid issues like that, never use compositor-provided image
descriptions.

However, query those image descriptions and map them to the closest
GdkColorState, so that we can quickly look up *our* version of that
image description and use that one.
This commit is contained in:
Benjamin Otte 2024-07-29 18:41:46 +02:00
parent 541ffbe4b5
commit d71a7c901d

View File

@ -491,9 +491,6 @@ image_desc_info_done (void *data,
cs = gdk_color_state_from_image_description_bits (desc);
if (cs)
{
g_hash_table_insert (self->color->cs_to_desc,
gdk_color_state_ref (cs),
desc->image_desc);
g_hash_table_insert (self->color->id_to_cs,
GUINT_TO_POINTER (desc->identity),
gdk_color_state_ref (cs));