edje: Fix double clicks
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 20 Jun 2016 04:37:56 +0000 (13:37 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 20 Jun 2016 04:47:26 +0000 (13:47 +0900)
This fixes T3895

src/lib/edje/edje_callbacks.c

index 79a27d0..f50af80 100644 (file)
@@ -117,9 +117,9 @@ _edje_mouse_down_signal_cb(void *data, const Eo_Event *event)
 
    if ((!ev->event_flags) || (!ignored))
      {
-        if (ev->event_flags & EVAS_BUTTON_TRIPLE_CLICK)
+        if (ev->button_flags & EVAS_BUTTON_TRIPLE_CLICK)
           snprintf(buf, sizeof(buf), "mouse,down,%i,triple", ev->button);
-        else if (ev->event_flags & EVAS_BUTTON_DOUBLE_CLICK)
+        else if (ev->button_flags & EVAS_BUTTON_DOUBLE_CLICK)
           snprintf(buf, sizeof(buf), "mouse,down,%i,double", ev->button);
         else
           snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);