discomfitor pushed a commit to branch enlightenment-0.18.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ae385f7e98f1a6bfc441338599e08207daf96b37

commit ae385f7e98f1a6bfc441338599e08207daf96b37
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Feb 3 11:07:21 2014 -0500

    bugfix: hide drag icons after dnd operation ends
    
    T797
---
 src/bin/e_dnd.c | 2 ++
 src/bin/e_dnd.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c
index c62f41a..886636c 100644
--- a/src/bin/e_dnd.c
+++ b/src/bin/e_dnd.c
@@ -833,6 +833,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) e_popup_show(_drag_current->pop);
         else e_popup_hide(_drag_current->pop);
         _e_drag_move(_drag_current, x, y);
@@ -969,6 +970,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;
      }
diff --git a/src/bin/e_dnd.h b/src/bin/e_dnd.h
index 37614b6..9fb180f 100644
--- a/src/bin/e_dnd.h
+++ b/src/bin/e_dnd.h
@@ -48,6 +48,8 @@ struct _E_Drag
 
    E_Layer            layer;
    unsigned char      visible : 1;
+   Eina_Bool          ended : 1;
+
 
    unsigned int       num_types;
    const char        *types[];

-- 


Reply via email to