forked from enlightenment/enlightenment
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:
parent
85480938cd
commit
0ba6584994
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue