Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_embed.c Log Message: Find the deepest nested DND aware widget at a coordinate. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v retrieving revision 1.80 retrieving revision 1.81 diff -u -3 -r1.80 -r1.81 --- ewl_embed.c 9 Sep 2006 04:07:51 -0000 1.80 +++ ewl_embed.c 9 Sep 2006 05:04:42 -0000 1.81 @@ -707,6 +707,17 @@ ewl_embed_active_set(embed, TRUE); widget = ewl_container_child_at_recursive_get(EWL_CONTAINER(embed), x, y); + /* + * Find the lowest DND aware widget + */ + while (widget) { + if (ewl_object_flags_has(EWL_OBJECT(widget), + EWL_FLAG_PROPERTY_DND_AWARE, + EWL_FLAGS_PROPERTY_MASK)) + break; + widget = widget->parent; + } + if (widget) { int i; Ewl_Widget *parent; @@ -744,7 +755,6 @@ ev.data = NULL; } - embed->last.drag_widget = widget; parent = widget; while (parent) { @@ -788,6 +798,17 @@ ewl_embed_active_set(embed, TRUE); widget = ewl_container_child_at_recursive_get(EWL_CONTAINER(embed), x, y); + /* + * Find the lowest DND aware widget + */ + while (widget) { + if (ewl_object_flags_has(EWL_OBJECT(widget), + EWL_FLAG_PROPERTY_DND_AWARE, + EWL_FLAGS_PROPERTY_MASK)) + break; + widget = widget->parent; + } + if (widget) { int i; Ewl_Widget *parent; @@ -813,7 +834,7 @@ parent = parent->parent; } } - + /* * Pass the position event up the chain */ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs