commit ae759b3bfb7561aaa4ed407f293343534825452f
parent 3d21c276c5bcd9308248890ec059cc59b8ff1339
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 24 Dec 2019 11:42:43 -0800
surface: Only allow buffer_scale=1
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libswc/surface.c b/libswc/surface.c
@@ -270,7 +270,8 @@ set_buffer_transform(struct wl_client *client, struct wl_resource *surface, int3
static void
set_buffer_scale(struct wl_client *client, struct wl_resource *surface, int32_t scale)
{
- wl_resource_post_error(surface, WL_SURFACE_ERROR_INVALID_SCALE, "buffer scale not supported");
+ if (scale != 1)
+ wl_resource_post_error(surface, WL_SURFACE_ERROR_INVALID_SCALE, "buffer scale not supported");
}
static void