Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_embed.c
Log Message:
Cleanup tracked variables when the parent is hidden as well.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_embed.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_embed.c 14 Oct 2005 03:18:18 -0000 1.10
+++ ewl_embed.c 17 Oct 2005 04:21:15 -0000 1.11
@@ -974,16 +974,17 @@
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("e", e);
- if (w == e->last.focused)
+ if ((w == e->last.focused) || (RECURSIVE(w) &&
ewl_container_parent_of(w, e->last.focused)))
e->last.focused = NULL;
- if (w == e->last.clicked)
+
+ if ((w == e->last.clicked) || (RECURSIVE(w) &&
ewl_container_parent_of(w, e->last.clicked)))
e->last.clicked = NULL;
- if (w == e->last.mouse_in)
+ if ((w == e->last.mouse_in) || (RECURSIVE(w) &&
ewl_container_parent_of(w, e->last.mouse_in)))
e->last.mouse_in = NULL;
- if (w == e->dnd_widget)
+ if ((w == e->dnd_widget) || (RECURSIVE(w) && ewl_container_parent_of(w,
e->dnd_widget)))
e->dnd_widget = NULL;
DLEAVE_FUNCTION(DLEVEL_STABLE);
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs