summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_evas/ecore_evas.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 14c3792..cbd3107 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -5172,14 +5172,14 @@ EAPI void
5172_ecore_evas_mouse_inout_set(Ecore_Evas *ee, Efl_Input_Device *mouse, 5172_ecore_evas_mouse_inout_set(Ecore_Evas *ee, Efl_Input_Device *mouse,
5173 Eina_Bool in, Eina_Bool force_out) 5173 Eina_Bool in, Eina_Bool force_out)
5174{ 5174{
5175 Efl_Input_Device *present; 5175 Eina_List *present;
5176 5176
5177 if (!mouse) 5177 if (!mouse)
5178 mouse = evas_default_device_get(ee->evas, 5178 mouse = evas_default_device_get(ee->evas,
5179 EFL_INPUT_DEVICE_TYPE_MOUSE);; 5179 EFL_INPUT_DEVICE_TYPE_MOUSE);;
5180 5180
5181 EINA_SAFETY_ON_NULL_RETURN(mouse); 5181 EINA_SAFETY_ON_NULL_RETURN(mouse);
5182 present = eina_list_data_find(ee->mice_in, mouse); 5182 present = eina_list_data_find_list(ee->mice_in, mouse);
5183 5183
5184 if (in) 5184 if (in)
5185 { 5185 {
@@ -5191,7 +5191,7 @@ _ecore_evas_mouse_inout_set(Ecore_Evas *ee, Efl_Input_Device *mouse,
5191 } 5191 }
5192 else 5192 else
5193 { 5193 {
5194 if (present) ee->mice_in = eina_list_remove(ee->mice_in, mouse); 5194 if (present) ee->mice_in = eina_list_remove_list(ee->mice_in, present);
5195 else if (!present && !force_out) return; 5195 else if (!present && !force_out) return;
5196 efl_event_callback_del(mouse, EFL_EVENT_DEL, 5196 efl_event_callback_del(mouse, EFL_EVENT_DEL,
5197 _ecore_evas_mouse_del_cb, ee); 5197 _ecore_evas_mouse_del_cb, ee);