ecore-drm: fix multiclick interval time
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 24 Apr 2015 17:40:32 +0000 (13:40 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 24 Apr 2015 17:40:32 +0000 (13:40 -0400)
libinput returns timestamps in milliseconds as int, not double

src/lib/ecore_drm/ecore_drm_evdev.c
src/lib/ecore_drm/ecore_drm_private.h

index f56e372453756b3700ec5742973f44f06b1695e3..666c900438bf4c30712c7158c651b4cb0508a7c6 100644 (file)
@@ -610,7 +610,7 @@ _ecore_drm_evdev_device_create(Ecore_Drm_Seat *seat, struct libinput_device *dev
         edev->seat_caps |= EVDEV_SEAT_POINTER;
 
         /* TODO: make this configurable */
-        edev->mouse.threshold = 0.25;
+        edev->mouse.threshold = 250;
      }
 
    if (libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_TOUCH))
index 16ef53e0ca3d551164b038edd0af1c7504f188e4..75e103a62b45c54c0892be71479e676ead335ffe 100644 (file)
@@ -200,7 +200,7 @@ struct _Ecore_Drm_Evdev
         int minx, miny, maxw, maxh;
         double dx, dy;
         unsigned int last, prev;
-        double threshold;
+        uint32_t threshold;
         Eina_Bool did_double : 1;
         Eina_Bool did_triple : 1;
         uint32_t prev_button, last_button;