mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
Merge pull request #2248 from APokorny/detect-touchscreens-with-btn-touch
udev: Fix touch screen detection
This commit is contained in:
commit
993898a2af
@ -205,12 +205,12 @@ static bool test_pointers(struct udev_device *dev,
|
||||
/* This path is taken by VMware's USB mouse, which has
|
||||
* absolute axes, but no touch/pressure button. */
|
||||
is_mouse = true;
|
||||
else if (has_touch)
|
||||
else if (has_touch || is_direct)
|
||||
is_touchscreen = true;
|
||||
else if (has_joystick_axes_or_buttons)
|
||||
is_joystick = true;
|
||||
}
|
||||
if (has_mt_coordinates && is_direct)
|
||||
if (has_mt_coordinates && (is_direct || has_touch))
|
||||
is_touchscreen = true;
|
||||
|
||||
if (has_rel_coordinates && has_mouse_button)
|
||||
|
Loading…
x
Reference in New Issue
Block a user