wayland/pointer-gestures: Send error on protocol version mismatch

When a client binds an incompatible version, we should terminate it.
This check should only be there for the unstable version, as once it is
declared stable and renamed, future versions will be backward compatible.

https://bugzilla.gnome.org/show_bug.cgi?id=753855
This commit is contained in:
Jonas Ådahl
2015-08-20 11:29:23 +08:00
parent 637be80c86
commit e76c3ecb00
3 changed files with 15 additions and 2 deletions

View File

@@ -16,6 +16,10 @@
name and the version will be reset to 1.
</description>
<enum name="error">
<entry name="version_mismatch" value="0"/>
</enum>
<request name="get_swipe_gesture">
<description summary="get swipe gesture">
Create a swipe gesture object. See the