diff options
author | Simon Ser <contact@emersion.fr> | 2021-06-30 11:38:57 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-07-08 09:12:17 +0200 |
commit | 84906a832f77aaef8c055a83955db63ea4618a01 (patch) | |
tree | 810fb7f1d7d0b2998ff60cea69556d2f51a71817 | |
parent | a48e569d3860e91428c74e876a5d886314767c7b (diff) |
touch: add frame event
-rw-r--r-- | include/wlr/types/wlr_touch.h | 1 | ||||
-rw-r--r-- | types/wlr_touch.c | 1 |
2 files changed, 2 insertions, 0 deletions
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) { |