devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7fcb3f5db143944d83e7286c8a84a04e1fbbf119

commit 7fcb3f5db143944d83e7286c8a84a04e1fbbf119
Author: Christopher Michael <[email protected]>
Date:   Wed Jan 2 14:54:00 2019 -0500

    elput: Verify pointer device is accel capable before setting speed
    
    As we cannot set mouse accel speed unless an input device is capable,
    we add a small test here to check that it supports acceleration.
---
 src/lib/elput/elput_input.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c
index 06da3d0149..ca0e130002 100644
--- a/src/lib/elput/elput_input.c
+++ b/src/lib/elput/elput_input.c
@@ -832,6 +832,9 @@ elput_input_pointer_accel_speed_set(Elput_Manager *manager, 
const char *seat, do
                                                  LIBINPUT_DEVICE_CAP_POINTER))
                continue;
 
+             if (!libinput_device_config_accel_is_available(edev->device))
+               continue;
+
              if (libinput_device_config_accel_set_speed(edev->device,
                                                         speed) !=
                  LIBINPUT_CONFIG_STATUS_SUCCESS)

-- 


Reply via email to