only delete current drag on x11 xdnd selection loss if x11 owned selection

This commit is contained in:
Mike Blumenkrantz 2015-08-12 17:45:01 -04:00
parent ecffe370d1
commit ce6703e979
1 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,9 @@ _xwl_fixes_selection_notify(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_X_Even
}
else
{
if (e_comp->wl_comp_data->drag)
if (e_comp->wl_comp_data->drag &&
e_comp->wl_comp_data->drag_client &&
e_client_has_xwindow(e_comp->wl_comp_data->drag_client))
e_object_del(E_OBJECT(e_comp->wl_comp_data->drag));
}
e_screensaver_inhibit_toggle(!!ev->owner);