efl/selection_manager: remove correct conditional

ref ac26c0a69d

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9265
This commit is contained in:
Mike Blumenkrantz 2019-07-10 14:06:47 -04:00 committed by Marcel Hollerbach
parent f5c03fe194
commit 6c82037ac0
1 changed files with 12 additions and 12 deletions

View File

@ -5475,12 +5475,15 @@ _efl_ui_selection_manager_efl_object_constructor(Eo *obj, Efl_Ui_Selection_Manag
pd->text_uri = eina_stringshare_add("text/uri-list"); pd->text_uri = eina_stringshare_add("text/uri-list");
#ifdef HAVE_ELEMENTARY_WL2 #ifdef HAVE_ELEMENTARY_WL2
if (_elm_wl_display)
{
pd->send_handler = ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_SEND, pd->send_handler = ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_SEND,
_wl_selection_send, pd); _wl_selection_send, pd);
pd->changed_handler = ecore_event_handler_add(ECORE_WL2_EVENT_SEAT_SELECTION, pd->changed_handler = ecore_event_handler_add(ECORE_WL2_EVENT_SEAT_SELECTION,
_wl_selection_changed, pd); _wl_selection_changed, pd);
pd->end_handler = ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_END, pd->end_handler = ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_END,
_wl_dnd_end, pd); _wl_dnd_end, pd);
}
#endif #endif
managers = eina_list_append(managers, obj); managers = eina_list_append(managers, obj);
return obj; return obj;
@ -5503,12 +5506,9 @@ _efl_ui_selection_manager_efl_object_destructor(Eo *obj, Efl_Ui_Selection_Manage
ecore_event_handler_del(pd->clear_handler); ecore_event_handler_del(pd->clear_handler);
#endif #endif
#ifdef HAVE_ELEMENTARY_WL2 #ifdef HAVE_ELEMENTARY_WL2
if (_elm_wl_display)
{
ecore_event_handler_del(pd->send_handler); ecore_event_handler_del(pd->send_handler);
ecore_event_handler_del(pd->changed_handler); ecore_event_handler_del(pd->changed_handler);
ecore_event_handler_del(pd->end_handler); ecore_event_handler_del(pd->end_handler);
}
#endif #endif
free(pd->atom_list); free(pd->atom_list);
EINA_LIST_FREE(pd->seat_list, seat_sel) EINA_LIST_FREE(pd->seat_list, seat_sel)