aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-30 11:39:38 +0200
committerSimon Ser <contact@emersion.fr>2021-07-08 09:12:17 +0200
commit8eef6a884388266ba1b5fc70960e42bf5127deaf (patch)
treec77bd5d8a757746d1e3df284edd727d8b9c360d3 /backend
parent2d36d7fb6701c47b483759bd54c0f1526abc5e67 (diff)
backend/wayland: send touch frame events
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/seat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c
index 9f23e750..039c524b 100644
--- a/backend/wayland/seat.c
+++ b/backend/wayland/seat.c
@@ -352,7 +352,10 @@ static void touch_handle_motion(void *data, struct wl_touch *wl_touch,
}
static void touch_handle_frame(void *data, struct wl_touch *wl_touch) {
- // no-op
+ struct wlr_wl_input_device *device = data;
+ assert(device && device->wlr_input_device.touch);
+
+ wlr_signal_emit_safe(&device->wlr_input_device.touch->events.frame, NULL);
}
static void touch_handle_cancel(void *data, struct wl_touch *wl_touch) {