evdev: Discard events from a touchscreen paired with an unplugged output
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 24 Apr 2014 12:11:15 +0000 (15:11 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 25 Apr 2014 21:55:28 +0000 (14:55 -0700)
commit6c975faaa9310c7b9f0e723540ec64d3c2343c87
tree247e3a4b1eadd8bc2824094c7e039ff886377372
parentf957dfb1de37e563d3aa2a1bbe3d1e3497c76de5
evdev: Discard events from a touchscreen paired with an unplugged output

Commit 17bccaed intended to make the events coming from a touchscreen
paired with an unplugged output to be discarded, while an unpaired one
would just choose a different output. However, the logic was inverted
causing the opposite to happen.

Later in commit 161c6c56, the default behavior was changed to map an
output to a default output if the one specified via udev is not
present. This change is reverted by this patch.

v2: undo the change from commit 161c6c56.

v3: deal with libinput too.
src/evdev.c
src/libinput-device.c
src/libinput-seat.c
src/udev-seat.c