wayland/pointer-gestures: Update protocol to v2

Update the pointer gestures protocol to version 2 and implement the new
release method.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1830>
This commit is contained in:
JoseExposito 2021-04-18 20:10:23 +02:00 committed by Marge Bot
parent d4ba16252b
commit c545ffac43
2 changed files with 10 additions and 2 deletions

View File

@ -54,9 +54,17 @@ gestures_get_pinch (struct wl_client *client,
meta_wayland_pointer_gesture_pinch_create_new_resource (pointer, client, resource, id); meta_wayland_pointer_gesture_pinch_create_new_resource (pointer, client, resource, id);
} }
static void
gestures_release (struct wl_client *client,
struct wl_resource *resource)
{
wl_resource_destroy (resource);
}
static const struct zwp_pointer_gestures_v1_interface pointer_gestures_interface = { static const struct zwp_pointer_gestures_v1_interface pointer_gestures_interface = {
gestures_get_swipe, gestures_get_swipe,
gestures_get_pinch gestures_get_pinch,
gestures_release
}; };
static void static void

View File

@ -45,7 +45,7 @@
#define META_XSERVER_VERSION 1 #define META_XSERVER_VERSION 1
#define META_GTK_SHELL1_VERSION 5 #define META_GTK_SHELL1_VERSION 5
#define META_WL_SUBCOMPOSITOR_VERSION 1 #define META_WL_SUBCOMPOSITOR_VERSION 1
#define META_ZWP_POINTER_GESTURES_V1_VERSION 1 #define META_ZWP_POINTER_GESTURES_V1_VERSION 2
#define META_ZXDG_EXPORTER_V1_VERSION 1 #define META_ZXDG_EXPORTER_V1_VERSION 1
#define META_ZXDG_IMPORTER_V1_VERSION 1 #define META_ZXDG_IMPORTER_V1_VERSION 1
#define META_ZWP_LINUX_DMABUF_V1_VERSION 3 #define META_ZWP_LINUX_DMABUF_V1_VERSION 3