bugfix: hide drag icons after dnd operation ends

T797
This commit is contained in:
Mike Blumenkrantz 2014-02-03 11:05:15 -05:00
parent fc83914c51
commit ebeffa1a91
2 changed files with 3 additions and 0 deletions

View File

@ -828,6 +828,7 @@ _e_drag_update(Ecore_X_Window root, int x, int y, Ecore_X_Atom action)
if (_drag_current)
{
if (_drag_current->ended) return 0;
if (_drag_current->visible) evas_object_show(_drag_current->comp_object);
else evas_object_hide(_drag_current->comp_object);
_e_drag_move(_drag_current, x, y);
@ -962,6 +963,7 @@ _e_drag_end(int x, int y)
if (_drag_current->cb.finished)
_drag_current->cb.finished(_drag_current, dropped);
_drag_current->cb.finished = NULL;
_drag_current->ended = 1;
return;
}

View File

@ -48,6 +48,7 @@ struct _E_Drag
E_Layer layer;
unsigned char visible : 1;
Eina_Bool ended : 1;
unsigned int num_types;
const char *types[];