From 870db9703cc2ad75194fca16e937e1d18ae72c2f Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 10 Aug 2022 10:57:13 +0200 Subject: [PATCH] backend-wayland: always propagate touch frame event Signed-off-by: Michael Olbrich (cherry picked from commit 631b60b38bf03a41515c4cdc9294f5b21ca719a5) --- libweston/backend-wayland/wayland.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libweston/backend-wayland/wayland.c b/libweston/backend-wayland/wayland.c index a5e0183a..bb5648d5 100644 --- a/libweston/backend-wayland/wayland.c +++ b/libweston/backend-wayland/wayland.c @@ -2162,10 +2162,6 @@ input_handle_touch_up(void *data, struct wl_touch *wl_touch, timespec_from_msec(&ts, time); input->touch_points--; - if (input->touch_points == 0) { - input->touch_focus = NULL; - input->touch_active = false; - } if (!output) return; @@ -2228,6 +2224,11 @@ input_handle_touch_frame(void *data, struct wl_touch *wl_touch) return; notify_touch_frame(input->touch_device); + + if (input->touch_points == 0) { + input->touch_focus = NULL; + input->touch_active = false; + } } static void