evdev: drop hook to init old touchpad driver

Still leaving the driver itself in place for removal later, but only
initialize the new driver now.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-02-17 15:40:09 +10:00
parent 92f5860bfa
commit 6a61032625

View file

@ -600,10 +600,7 @@ evdev_configure_device(struct evdev_device *device)
if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_TOOL_FINGER) &&
!libevdev_has_event_code(device->evdev, EV_KEY, BTN_TOOL_PEN) &&
(has_abs || has_mt)) {
if (getenv("LIBINPUT_NEW_TOUCHPAD_DRIVER") && has_mt)
device->dispatch = evdev_mt_touchpad_create(device);
else
device->dispatch = evdev_touchpad_create(device);
device->dispatch = evdev_mt_touchpad_create(device);
}
for (i = KEY_ESC; i < KEY_MAX; i++) {
if (i >= BTN_MISC && i < KEY_OK)