forked from enlightenment/enlightenment
parent
fc83914c51
commit
ebeffa1a91
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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[];
|
||||
|
|
Loading…
Reference in New Issue