From: Duna Oh Date: Thu, 7 Apr 2016 04:08:22 +0000 (+0900) Subject: e_comp_wl: Evas_Event_Mouse_In event could be send by touch device. X-Git-Tag: submit/tizen/20160407.042041^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c465e7375f1f87c34d22a8b20f9ca6ff060e3be;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl: Evas_Event_Mouse_In event could be send by touch device. Signed-off-by: Duna Oh Change-Id: Idae92422ac92c4df25aed10d537006c0575d7fea --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 5d157bd9d4..859124840e 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -646,6 +646,7 @@ _e_comp_wl_device_send_last_event_device(E_Client *ec, uint32_t timestamp) Eina_List *l, *ll; if (!ec->comp_data->surface) return; + if (!e_comp_wl->input_device_manager.last_device_name) return; serial = wl_display_next_serial(e_comp_wl->wl.disp); wc = wl_resource_get_client(ec->comp_data->surface); @@ -759,9 +760,9 @@ _e_comp_wl_evas_cb_mouse_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj e_comp_wl->ptr.hide_tmr = ecore_timer_add(e_config->cursor_timer_interval, _e_comp_wl_cursor_timer, ec); } - if ((e_comp_wl->input_device_manager.last_device_name) && - (_e_comp_wl_device_cap_to_class(e_comp_wl->input_device_manager.last_device_cap) == EVAS_DEVICE_CLASS_MOUSE)) - _e_comp_wl_device_send_last_event_device(ec, ev->timestamp); + if ((_e_comp_wl_device_cap_to_class(e_comp_wl->input_device_manager.last_device_cap) == EVAS_DEVICE_CLASS_MOUSE) || + (_e_comp_wl_device_cap_to_class(e_comp_wl->input_device_manager.last_device_cap) == EVAS_DEVICE_CLASS_TOUCH)) + _e_comp_wl_device_send_last_event_device(ec, ev->timestamp); if (!eina_list_count(e_comp_wl->ptr.resources)) return; wc = wl_resource_get_client(ec->comp_data->surface); @@ -1349,8 +1350,7 @@ _e_comp_wl_evas_cb_focus_in_timer(E_Client *ec) if (!e_comp_wl->kbd.focused) return EINA_FALSE; serial = wl_display_next_serial(e_comp_wl->wl.disp); t = ecore_time_unix_get(); - if ((e_comp_wl->input_device_manager.last_device_name) && - (_e_comp_wl_device_cap_to_class(e_comp_wl->input_device_manager.last_device_cap) == EVAS_DEVICE_CLASS_KEYBOARD)) + if (_e_comp_wl_device_cap_to_class(e_comp_wl->input_device_manager.last_device_cap) == EVAS_DEVICE_CLASS_KEYBOARD) _e_comp_wl_device_send_last_event_device(ec, t); EINA_LIST_FOREACH(e_comp_wl->kbd.focused, l, res) @@ -1422,8 +1422,7 @@ _e_comp_wl_evas_cb_focus_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *ob /* send keyboard_leave to all keyboard resources */ serial = wl_display_next_serial(e_comp_wl->wl.disp); t = ecore_time_unix_get(); - if ((e_comp_wl->input_device_manager.last_device_name) && - (_e_comp_wl_device_cap_to_class(e_comp_wl->input_device_manager.last_device_cap) == EVAS_DEVICE_CLASS_KEYBOARD)) + if (_e_comp_wl_device_cap_to_class(e_comp_wl->input_device_manager.last_device_cap) == EVAS_DEVICE_CLASS_KEYBOARD) _e_comp_wl_device_send_last_event_device(ec, t); EINA_LIST_FOREACH_SAFE(e_comp_wl->kbd.focused, l, ll, res)