From 644b96e53ae2345f036ddf2ee2ba70f7714ca007 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Wed, 15 May 2024 19:22:14 +0200 Subject: [PATCH] Fix false-negative on cyttsp4_mt panels The kernel *has* EVIOCGPROP support, the device just happens *not* to be flagged as DIRECT :/. --- fbink_input_scan.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fbink_input_scan.c b/fbink_input_scan.c index eab77d3a..5a728943 100644 --- a/fbink_input_scan.c +++ b/fbink_input_scan.c @@ -101,8 +101,15 @@ static bool is_joystick = true; } } - if (has_mt_coordinates && (is_direct || !bitmask_props)) { - is_touchscreen = true; + if (has_mt_coordinates) { + if (is_direct || !bitmask_props) { + is_touchscreen = true; + } + if (has_touch) { + is_touchscreen = true; + } + // NOTE: Qt's QDeviceDiscovery *unconditionally* assumes is_touchscreen here. + // That might not be such a terrible idea... } if (has_rel_coordinates && has_mouse_button) {