input: Fix errors due to initializing input before creating outputs
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 24 Apr 2014 12:11:17 +0000 (15:11 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 25 Apr 2014 22:04:04 +0000 (15:04 -0700)
commita7caef964bb8a67a555af8dbe2d8a7e4b2797454
treed5ffcb1c47cd47d6edc53666eaba809eadc9b620
parentae826cead7caa46e03984955d38631ad0ea0c8fd
input: Fix errors due to initializing input before creating outputs

Make sure that we don't map a device to an invalid output pointer and
intead remap devices when an output is created.

v2: fix the error with libinput too.
src/evdev.c
src/libinput-device.c
src/libinput-seat.c
src/udev-seat.c