wayland: Respect GDK_DISABLE=color-mgmt

If the color-mgmt feature is disabled, don't use the
xx-color-management-v4 protocol.
This commit is contained in:
Matthias Clasen
2024-08-19 16:07:47 -04:00
parent de62ea96ab
commit 29cfcbdc97

View File

@@ -535,7 +535,8 @@ gdk_registry_handle_global (void *data,
&wp_presentation_interface,
MIN (version, 1));
}
else if (strcmp (interface, xx_color_manager_v4_interface.name) == 0)
else if (strcmp (interface, xx_color_manager_v4_interface.name) == 0 &&
gdk_has_feature (GDK_FEATURE_COLOR_MANAGEMENT))
{
display_wayland->color = gdk_wayland_color_new (display_wayland, registry, id, version);
}