mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Fix copy-paste error when probing type name
A minor copy and paste error was introduced in 71e9a69e leaving an "if"
where an "else if" should be. Without this, any device configured as
XI_TOUCHPAD or XI_TABLET will end up having the type_name reset to
either XI_TOUCHSCREEN or XI_MOUSE.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
71e9a69ed6
commit
9243d338d1
@@ -1576,7 +1576,7 @@ EvdevProbe(InputInfoPtr pInfo)
|
||||
} else if (TestBit(ABS_PRESSURE, pEvdev->abs_bitmask)) {
|
||||
xf86Msg(X_INFO, "%s: Configuring as tablet\n", pInfo->name);
|
||||
pInfo->type_name = XI_TABLET;
|
||||
} if (pEvdev->flags & EVDEV_TOUCHSCREEN) {
|
||||
} else if (pEvdev->flags & EVDEV_TOUCHSCREEN) {
|
||||
xf86Msg(X_INFO, "%s: Configuring as touchscreen\n", pInfo->name);
|
||||
pInfo->type_name = XI_TOUCHSCREEN;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user