mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 10:08:00 +02:00
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:
parent
07d9eb1f7e
commit
61e1b9c14a
1 changed files with 3 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue