aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2021-07-12 19:52:32 +0200
committerSimon Ser <contact@emersion.fr>2021-09-27 15:30:31 +0200
commit5f3e490c8007c5fbac8bb3537a9997969c904885 (patch)
tree9102cf38e00f332bb12992f8f785576f65aecce3
parent4c3e307ec829f103920e8d25306b11357e51f4fc (diff)
wlr_pointer_gestures: update protocol to version 2
-rw-r--r--types/wlr_pointer_gestures_v1.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/types/wlr_pointer_gestures_v1.c b/types/wlr_pointer_gestures_v1.c
index 509007a1..a0328704 100644
--- a/types/wlr_pointer_gestures_v1.c
+++ b/types/wlr_pointer_gestures_v1.c
@@ -11,7 +11,7 @@
#include "util/signal.h"
#include "pointer-gestures-unstable-v1-protocol.h"
-#define POINTER_GESTURES_VERSION 1
+#define POINTER_GESTURES_VERSION 2
static void resource_handle_destroy(struct wl_client *client,
struct wl_resource *resource) {
@@ -270,9 +270,15 @@ static void get_pinch_gesture(struct wl_client *client,
wl_list_insert(&gestures->pinches, wl_resource_get_link(gesture));
}
+static void pointer_gestures_release(struct wl_client *client,
+ struct wl_resource *resource) {
+ wl_resource_destroy(resource);
+}
+
static const struct zwp_pointer_gestures_v1_interface gestures_impl = {
.get_swipe_gesture = get_swipe_gesture,
.get_pinch_gesture = get_pinch_gesture,
+ .release = pointer_gestures_release,
};
static void pointer_gestures_v1_bind(struct wl_client *wl_client, void *data,