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 <liang.zhou@gehealthcare.com>
This commit is contained in:
liang zhou 2026-01-20 09:54:31 +08:00
parent 07d9eb1f7e
commit 61e1b9c14a

View file

@ -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));