From 84906a832f77aaef8c055a83955db63ea4618a01 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 30 Jun 2021 11:38:57 +0200 Subject: [PATCH] touch: add frame event --- include/wlr/types/wlr_touch.h | 1 + types/wlr_touch.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/wlr/types/wlr_touch.h b/include/wlr/types/wlr_touch.h index f4d9c144..ca7cf2a6 100644 --- a/include/wlr/types/wlr_touch.h +++ b/include/wlr/types/wlr_touch.h @@ -22,6 +22,7 @@ struct wlr_touch { struct wl_signal up; // struct wlr_event_touch_up struct wl_signal motion; // struct wlr_event_touch_motion struct wl_signal cancel; // struct wlr_event_touch_cancel + struct wl_signal frame; } events; void *data; diff --git a/types/wlr_touch.c b/types/wlr_touch.c index 9a6dacfa..9edfdaee 100644 --- a/types/wlr_touch.c +++ b/types/wlr_touch.c @@ -11,6 +11,7 @@ void wlr_touch_init(struct wlr_touch *touch, wl_signal_init(&touch->events.up); wl_signal_init(&touch->events.motion); wl_signal_init(&touch->events.cancel); + wl_signal_init(&touch->events.frame); } void wlr_touch_destroy(struct wlr_touch *touch) {