mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-26 00:52:21 +00:00
wlr_pointer_gestures: update protocol to version 2
This commit is contained in:
parent
4c3e307ec8
commit
5f3e490c80
@ -11,7 +11,7 @@
|
|||||||
#include "util/signal.h"
|
#include "util/signal.h"
|
||||||
#include "pointer-gestures-unstable-v1-protocol.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,
|
static void resource_handle_destroy(struct wl_client *client,
|
||||||
struct wl_resource *resource) {
|
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));
|
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 = {
|
static const struct zwp_pointer_gestures_v1_interface gestures_impl = {
|
||||||
.get_swipe_gesture = get_swipe_gesture,
|
.get_swipe_gesture = get_swipe_gesture,
|
||||||
.get_pinch_gesture = get_pinch_gesture,
|
.get_pinch_gesture = get_pinch_gesture,
|
||||||
|
.release = pointer_gestures_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void pointer_gestures_v1_bind(struct wl_client *wl_client, void *data,
|
static void pointer_gestures_v1_bind(struct wl_client *wl_client, void *data,
|
||||||
|
Loading…
Reference in New Issue
Block a user