commit | 8d344a05480ba105a25517507ac44b4cd1dd1749 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Sun Dec 08 22:27:11 2013 -0800 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Sun Dec 08 22:27:11 2013 -0800 |
tree | e7ffc12029a34d447cb7e794fa27230ee70730c6 | |
parent | 1e65840b6103197a684a551925a58fb1ae6c40e3 [diff] [blame] |
shell: Make sure the shell implementation and protocol versions match
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 9f442ad..f952124 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c
@@ -3421,6 +3421,9 @@ #define XDG_SERVER_VERSION 1 + static_assert(XDG_SERVER_VERSION == XDG_SHELL_VERSION_CURRENT, + "shell implementation doesn't match protocol version"); + if (args[0].i != XDG_SERVER_VERSION) { wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT,