commit | f957dfb1de37e563d3aa2a1bbe3d1e3497c76de5 | [log] [tgz] |
---|---|---|
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | Thu Apr 24 15:11:14 2014 +0300 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Fri Apr 25 14:55:08 2014 -0700 |
tree | 760b3950fedf2879681a72ead27d14452dcbc68e | |
parent | 4283370e019675abe8c471dd7e2050d60fa48a2b [diff] [blame] |
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 @@ 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);