From dcc22aa27cdff2f8ff5d1452b95b221279c02aa1 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 11 Aug 2015 16:03:01 -0400 Subject: [PATCH] finish xwl dnd operation immediately if drop occurred somehow --- src/modules/xwayland/dnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/xwayland/dnd.c b/src/modules/xwayland/dnd.c index 074bf8b08..a3208805b 100644 --- a/src/modules/xwayland/dnd.c +++ b/src/modules/xwayland/dnd.c @@ -88,11 +88,11 @@ _xwayland_dnd_finish(void) } static void -_xwayland_drop(E_Drag *drag, int dropped EINA_UNUSED) +_xwayland_drop(E_Drag *drag, int dropped) { if (e_comp->comp_type != E_PIXMAP_TYPE_WL) return; e_comp->wl_comp_data->drag = NULL; - if (e_object_is_del(E_OBJECT(drag)) || (!e_comp->wl_comp_data->selection.target)) + if (dropped || e_object_is_del(E_OBJECT(drag)) || (!e_comp->wl_comp_data->selection.target)) _xdnd_finish(0); else {