From: Ander Conselvan de Oliveira Date: Thu, 24 Apr 2014 12:11:14 +0000 (+0300) Subject: libinput: Don't process touch events for devices without a valid output X-Git-Tag: upstream/0.1.8~259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f957dfb1de37e563d3aa2a1bbe3d1e3497c76de5;p=profile%2Fivi%2Fweston-ivi-shell.git 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. --- diff --git a/src/libinput-device.c b/src/libinput-device.c index 0ca6c4b..a67c119 100644 --- a/src/libinput-device.c +++ b/src/libinput-device.c @@ -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);