[PATCH libinput 2/4] evdev: move a comment to where it belongs
Peter Hutterer
peter.hutterer at who-t.net
Tue Nov 4 20:44:24 PST 2014
And s/weston/libinput/ while we're at it
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index ecf105d..bda6af4 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1096,9 +1096,6 @@ evdev_configure_device(struct evdev_device *device)
device->abs.absinfo_y = absinfo;
has_abs = 1;
}
- /* We only handle the slotted Protocol B in weston.
- Devices with ABS_MT_POSITION_* but not ABS_MT_SLOT
- require mtdev for conversion. */
if (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) &&
libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y)) {
absinfo = libevdev_get_abs_info(evdev, ABS_MT_POSITION_X);
@@ -1118,6 +1115,9 @@ evdev_configure_device(struct evdev_device *device)
has_touch = 1;
has_mt = 1;
+ /* We only handle the slotted Protocol B in libinput.
+ Devices with ABS_MT_POSITION_* but not ABS_MT_SLOT
+ require mtdev for conversion. */
if (evdev_need_mtdev(device)) {
device->mtdev = mtdev_new_open(device->fd);
if (!device->mtdev)
--
2.1.0
More information about the wayland-devel
mailing list