yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=ee6166365f554e4dcb36677a9144a17698e2bf0e

commit ee6166365f554e4dcb36677a9144a17698e2bf0e
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Wed Nov 18 18:01:03 2015 +0200

    Forbid drop into dummy objects.
    
    Dummy objects will be ignored during drop target search (iteration)
---
 src/bin/gui/dnd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/bin/gui/dnd.c b/src/bin/gui/dnd.c
index b327917..078716b 100644
--- a/src/bin/gui/dnd.c
+++ b/src/bin/gui/dnd.c
@@ -282,8 +282,7 @@ _drop_target_iterate(Gui_Widget **drop_candidate, const 
Gui_Session *session, Ev
      {
         Gui_Widget *w = wdg_get(wdg_id);
         /* If widget is not active, or is not a drop target, continue. */
-        if (!w)
-           continue;
+        if (!w || eid_is_dummy(wdg_id)) continue;
         if (wdg_data_get(w, DROP_TARGET))
           {
              o = session_eo_get(session, w);

-- 


Reply via email to