From 696b0ca9c08f73d2ce1270b981f4a73a1ad466b8 Mon Sep 17 00:00:00 2001 From: Lephe Date: Sun, 13 Apr 2025 17:34:47 +0200 Subject: [PATCH] touch: provide coordinates of releases --- src/touch/touch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/touch/touch.c b/src/touch/touch.c index a5512d8..feebb81 100644 --- a/src/touch/touch.c +++ b/src/touch/touch.c @@ -192,6 +192,8 @@ static key_event_t make_event(struct _touch_addots const *dots) if(dots->touches != 1) { if(prev_type != KEYEV_TOUCH_UP && prev_type != KEYEV_NONE) evt.type = KEYEV_TOUCH_UP; + evt.x = prev_x; + evt.y = prev_y; } else { if(prev_type == KEYEV_TOUCH_UP || prev_type == KEYEV_NONE)