From d6c7a161c778c9d6e40efaee71993ca96f0048f0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 23 Nov 2025 22:36:32 +0100 Subject: [PATCH] color_representation_v1: send chroma_location protocol error This error has been added in: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/commit/46f46863b7b5ac8d9c5bcdb167b57ae803d064ac --- types/wlr_color_representation_v1.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/types/wlr_color_representation_v1.c b/types/wlr_color_representation_v1.c index ff9b6e3b7..a447d77a7 100644 --- a/types/wlr_color_representation_v1.c +++ b/types/wlr_color_representation_v1.c @@ -178,11 +178,7 @@ static void color_repr_handle_set_chroma_location(struct wl_client *client, uint32_t version = wl_resource_get_version(resource); if (!wp_color_representation_surface_v1_chroma_location_is_valid( version, chroma_location)) { - wlr_log(WLR_ERROR, "Client sent chroma location which isn't a valid enum value"); - // TODO: Post actual error once - // https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/429 - // is merged and wlroots depends on a new enough wayland-protocols. - wl_client_post_implementation_error(resource->client, + wl_resource_post_error(resource, WP_COLOR_REPRESENTATION_SURFACE_V1_ERROR_CHROMA_LOCATION, "Chroma location is not a valid enum value"); return; }