From 1ed607f398eaba493c30f07ae36daa764b91bd53 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 5 Sep 2014 16:21:43 -0700 Subject: [PATCH] wayland-surface: Make bad xdg-shell versions crash the client Otherwise, we might continue with weird semantics. --- src/wayland/meta-wayland-surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 1dade0577..771154ac1 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -752,7 +752,8 @@ xdg_shell_use_unstable_version (struct wl_client *client, int32_t version) { if (version != XDG_SHELL_VERSION_CURRENT) - g_warning ("Bad xdg_shell version: %d", version); + wl_resource_post_error (resource, WL_DISPLAY_ERROR_INVALID_OBJECT, + "bad xdg-shell version: %d\n", version); } static void