mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
wayland-surface: Make bad xdg-shell versions crash the client
Otherwise, we might continue with weird semantics.
This commit is contained in:
parent
7e0822c5b1
commit
1ed607f398
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user