mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-25 21:10:11 +01:00
libinput: Don't process touch events for devices without a valid output
That would be the case of a touch screen mapped to an output that was unplugged.
This commit is contained in:
parent
4283370e01
commit
f957dfb1de
1 changed files with 3 additions and 0 deletions
|
|
@ -147,6 +147,9 @@ handle_touch_with_coords(struct libinput_device *libinput_device,
|
|||
uint32_t time;
|
||||
int32_t slot;
|
||||
|
||||
if (!device->output)
|
||||
return;
|
||||
|
||||
time = libinput_event_touch_get_time(touch_event);
|
||||
slot = libinput_event_touch_get_seat_slot(touch_event);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue