mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-22 05:34:24 -04:00
color_representation_v1: send chroma_location protocol error
This error has been added in:
46f46863b7
This commit is contained in:
parent
82d5ffb09e
commit
d6c7a161c7
1 changed files with 1 additions and 5 deletions
|
|
@ -178,11 +178,7 @@ static void color_repr_handle_set_chroma_location(struct wl_client *client,
|
||||||
uint32_t version = wl_resource_get_version(resource);
|
uint32_t version = wl_resource_get_version(resource);
|
||||||
if (!wp_color_representation_surface_v1_chroma_location_is_valid(
|
if (!wp_color_representation_surface_v1_chroma_location_is_valid(
|
||||||
version, chroma_location)) {
|
version, chroma_location)) {
|
||||||
wlr_log(WLR_ERROR, "Client sent chroma location which isn't a valid enum value");
|
wl_resource_post_error(resource, WP_COLOR_REPRESENTATION_SURFACE_V1_ERROR_CHROMA_LOCATION,
|
||||||
// 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,
|
|
||||||
"Chroma location is not a valid enum value");
|
"Chroma location is not a valid enum value");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue