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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user