wayland-surface: Make bad xdg-shell versions crash the client

Otherwise, we might continue with weird semantics.
This commit is contained in:
Jasper St. Pierre 2014-09-05 16:21:43 -07:00
parent 7e0822c5b1
commit 1ed607f398

View File

@ -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