diff options
-rw-r--r-- | src/evdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index f627fd0..cffed7f 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -2353,8 +2353,10 @@ EvdevProbe(InputInfoPtr pInfo) pInfo->type_name = XI_TOUCHSCREEN; } else { if (!libevdev_has_event_code(pEvdev->dev, EV_REL, REL_X) || - !libevdev_has_event_code(pEvdev->dev, EV_REL, REL_Y)) + !libevdev_has_event_code(pEvdev->dev, EV_REL, REL_Y)) { + pEvdev->flags |= EVDEV_RELATIVE_EVENTS; EvdevForceXY(pInfo, Relative); + } xf86IDrvMsg(pInfo, X_INFO, "Configuring as mouse\n"); pInfo->type_name = XI_MOUSE; } |