diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-12-16 15:51:22 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-12-16 15:51:22 -0800 |
commit | cd2f46f3d267e71e6877c2f4df654f8a262d873b (patch) | |
tree | d44288acaf494b69467feae74cc2899923c148b1 /src | |
parent | c67fd1cf0e91ab03a7d5e5edf44e4a748f899ae4 (diff) |
evdev: Reject absolute motion if we're not a pointer or a touch device
Some joysticks have certain buttons that acts keyboard keys. As such,
we'll reconize them as keyboards but not pointers. In that case, don't
send pointer motion events when we get absolute joystick events.
Diffstat (limited to 'src')
-rw-r--r-- | src/evdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index f24544a6..5f5729b8 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -139,7 +139,7 @@ evdev_flush_pending_event(struct evdev_device *device, uint32_t time) if (device->seat_caps & EVDEV_SEAT_TOUCH) notify_touch(master, time, 0, x, y, WL_TOUCH_MOTION); - else + else if (device->seat_caps & EVDEV_SEAT_POINTER) notify_motion_absolute(master, time, x, y); goto handled; case EVDEV_ABSOLUTE_TOUCH_UP: |