From 0ba65849942c9d64610c9049520ed0e77d303bbe Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 2 Dec 2013 09:06:20 -0500 Subject: [PATCH] move dnd input window free to drag free function fix T542 and other cases where dnd operations could permanently break mouse input --- src/bin/e_dnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c index 095d31a71..52a3b7c73 100644 --- a/src/bin/e_dnd.c +++ b/src/bin/e_dnd.c @@ -966,8 +966,6 @@ _e_drag_end(int x, int y) } dropped = 0; - ecore_x_window_free(_drag_win); - _drag_win = 0; if (!_drag_current->data) { /* Just leave */ @@ -1112,6 +1110,8 @@ _e_drag_free(E_Drag *drag) for (i = 0; i < drag->num_types; i++) eina_stringshare_del(drag->types[i]); free(drag); + ecore_x_window_free(_drag_win); + _drag_win = 0; ecore_x_window_shadow_tree_flush(); }