commit db2ce7a5c88f685fb5fd9b903dbe4f7dc857c44f
parent b5b7214bed4d30ff52afa5e9668c9f4162caf30a
Author: nia <nia@netbsd.org>
Date: Mon, 24 Feb 2020 12:38:11 +0000
surface: Do not error if the transformation type is NORMAL.
This allows Qt5 applications to run again.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libswc/surface.c b/libswc/surface.c
@@ -268,7 +268,10 @@ commit(struct wl_client *client, struct wl_resource *resource)
static void
set_buffer_transform(struct wl_client *client, struct wl_resource *surface, int32_t transform)
{
- wl_resource_post_error(surface, WL_SURFACE_ERROR_INVALID_TRANSFORM, "buffer transform not supported");
+ if (transform != WL_OUTPUT_TRANSFORM_NORMAL) {
+ wl_resource_post_error(surface, WL_SURFACE_ERROR_INVALID_TRANSFORM,
+ "buffer transform %" PRId32 " not supported", transform);
+ }
}
static void