efl_selection_manager: shut up shut up shut up ecore-x when running in wayland

fix T6643
This commit is contained in:
Mike Blumenkrantz 2018-02-13 17:28:40 -05:00
parent f9ef210005
commit 708c4ab576
1 changed files with 17 additions and 13 deletions

View File

@ -5261,6 +5261,8 @@ _efl_selection_manager_efl_object_constructor(Eo *obj, Efl_Selection_Manager_Dat
int i;
#ifdef HAVE_ELEMENTARY_X
if (ecore_x_display_get())
{
for (i = 0; i < SELECTION_N_ATOMS; i++)
{
pd->atom_list[i].x_atom = ecore_x_atom_get(pd->atom_list[i].name);
@ -5273,6 +5275,7 @@ _efl_selection_manager_efl_object_constructor(Eo *obj, Efl_Selection_Manager_Dat
_x11_selection_clear, pd);
pd->fix_handler = ecore_event_handler_add(ECORE_X_EVENT_FIXES_SELECTION_NOTIFY,
_x11_fixes_selection_notify, pd);
}
#endif
pd->type_hash = eina_hash_string_small_new(NULL);
@ -5374,6 +5377,7 @@ _efl_selection_manager_efl_object_destructor(Eo *obj, Efl_Selection_Manager_Data
}
if (init_x)
{
if (ecore_x_display_get())
ecore_x_shutdown();
}
#endif