[PATCH weston 1/5] evdev: Don't ignore multitouch touchscreens

Daniel Stone daniel at fooishbar.org
Mon Jul 23 11:54:57 PDT 2012


Most touchscreen drivers provide ABS_X and BTN_TOUCH for legacy
single-touch emulation modes, but this isn't mandatory.  Make sure we
don't ignore touchscreens with provide multitouch events with the new
API only.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 src/evdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/evdev.c b/src/evdev.c
index 3355192..74662b2 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -441,7 +441,7 @@ evdev_configure_device(struct evdev_input_device *device)
 	/* This rule tries to catch accelerometer devices and opt out. We may
 	 * want to adjust the protocol later adding a proper event for dealing
 	 * with accelerometers and implement here accordingly */
-	if (has_abs && !has_key)
+	if (has_abs && !has_key && !device->is_mt)
 		return -1;
 
 	if ((device->caps &
-- 
1.7.10.4



More information about the wayland-devel mailing list