discomfitor pushed a commit to branch enlightenment-0.18.

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

commit 030ade5ad36b20c93b15a1bb15e4a50b268ff49c
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jan 22 16:04:58 2014 -0500

    bugfix: remove drop handlers from responsive hash on deletion
---
 src/bin/e_dnd.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c
index 0e85a3e..c62f41a 100644
--- a/src/bin/e_dnd.c
+++ b/src/bin/e_dnd.c
@@ -457,10 +457,19 @@ EAPI void
 e_drop_handler_del(E_Drop_Handler *handler)
 {
    unsigned int i;
+   Eina_List *l;
+   Ecore_X_Window hwin;
 
    if (!handler)
      return;
 
+   hwin = _e_drag_win_get(handler, 1);
+   if (hwin)
+     {
+        l = eina_hash_find(_drop_handlers_responsives, &hwin);
+        if (l)
+          eina_hash_set(_drop_handlers_responsives, &hwin, eina_list_remove(l, 
handler));
+     }
    _drop_handlers = eina_list_remove(_drop_handlers, handler);
    if (handler->active)
      _active_handlers = eina_list_remove(_active_handlers, handler);

-- 


Reply via email to