summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy/elementary/src/lib/elm_gesture_layer.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/legacy/elementary/src/lib/elm_gesture_layer.c b/legacy/elementary/src/lib/elm_gesture_layer.c
index fa85f51dfa..5f30581e8c 100644
--- a/legacy/elementary/src/lib/elm_gesture_layer.c
+++ b/legacy/elementary/src/lib/elm_gesture_layer.c
@@ -957,16 +957,14 @@ _event_history_clear(Evas_Object *obj)
957 957
958 if (pending) 958 if (pending)
959 { 959 {
960 wd->pending = eina_list_remove_list(wd->pending, pending); 960 wd->pending = eina_list_remove_list(wd->pending, pending);
961 int device = ELM_MOUSE_DEVICE;
962 if (wd->event_history_list->event_type == EVAS_CALLBACK_MULTI_UP)
963 device = ((Evas_Event_Multi_Up *)
964 (wd->event_history_list->event))->device;
965 } 961 }
966 else 962 else
967 wd->pending = _add_device_pending(wd->pending, 963 {
968 wd->event_history_list->event, 964 wd->pending = _add_device_pending(wd->pending,
969 wd->event_history_list->event_type); 965 wd->event_history_list->event,
966 wd->event_history_list->event_type);
967 }
970 } 968 }
971 969
972 free(wd->event_history_list->event); 970 free(wd->event_history_list->event);