Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_embed.c 


Log Message:
Don't modify the focus while dispatching mouse wheel events.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_embed.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- ewl_embed.c 24 Jun 2004 17:33:41 -0000      1.39
+++ ewl_embed.c 10 Jul 2004 20:13:31 -0000      1.40
@@ -533,6 +533,7 @@
 void
 ewl_embed_feed_mouse_wheel(Ewl_Embed *embed, int x, int y, int z, int dir, unsigned 
int mods)
 {
+       Ewl_Widget *w;
        Ewl_Event_Mouse_Wheel ev;
        DENTER_FUNCTION(DLEVEL_STABLE);
 
@@ -542,17 +543,17 @@
        ev.z = z;
        ev.dir = dir;
 
-       if (!last_focused) {
+       w = last_focused;
+       if (!w) {
                ewl_callback_call_with_event_data(EWL_WIDGET(embed),
                                                  EWL_CALLBACK_MOUSE_WHEEL,
                                                  &ev);
        }
 
-       while (last_focused) {
-               ewl_callback_call_with_event_data(last_focused,
-                                                 EWL_CALLBACK_MOUSE_WHEEL,
+       while (w) {
+               ewl_callback_call_with_event_data(w, EWL_CALLBACK_MOUSE_WHEEL,
                                                  &ev);
-               last_focused = last_focused->parent;
+               w = w->parent;
        }
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to