From 61e1b9c14a289c8b3f9f509db47e94d15f840cce Mon Sep 17 00:00:00 2001 From: liang zhou Date: Tue, 20 Jan 2026 09:54:31 +0800 Subject: [PATCH] libweston: fix unexpect log when touch device has no output In handle_touch_up, check whether the associated output is NULL before calling notify_touch. This prevents unnecessary logging of "Unmatched touch up event on seat" when a touch device is not bound to any output, as the absence of an output is already handled gracefully in handle_touch_with_coords. Signed-off-by: liang zhou --- libweston/libinput-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/libinput-device.c b/libweston/libinput-device.c index 3f4e212b2..c79d03db6 100644 --- a/libweston/libinput-device.c +++ b/libweston/libinput-device.c @@ -505,6 +505,9 @@ handle_touch_up(struct libinput_device *libinput_device, struct timespec time; int32_t slot = libinput_event_touch_get_seat_slot(touch_event); + if (!device->output) + return; + timespec_from_usec(&time, libinput_event_touch_get_time_usec(touch_event));