From e9e4896a2199d3bc81ee6ae9e9b0d3526013b6a7 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Mon, 9 Mar 2026 11:06:51 -0400 Subject: [PATCH] color_representation_v1: fix swapped parameter for wp_color_representation_surface_v1_chroma_location_is_valid --- types/wlr_color_representation_v1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/wlr_color_representation_v1.c b/types/wlr_color_representation_v1.c index 856dc84f8..b35ba6550 100644 --- a/types/wlr_color_representation_v1.c +++ b/types/wlr_color_representation_v1.c @@ -180,8 +180,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)) { + if (!wp_color_representation_surface_v1_chroma_location_is_valid(chroma_location, version)) { wl_resource_post_error(resource, WP_COLOR_REPRESENTATION_SURFACE_V1_ERROR_CHROMA_LOCATION, "Chroma location is not a valid enum value"); return;