move dnd input window free to drag free function

fix T542 and other cases where dnd operations could permanently break mouse input
This commit is contained in:
Mike Blumenkrantz 2013-12-02 09:06:20 -05:00
parent 85480938cd
commit 0ba6584994
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}