Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/engines/x11


Modified Files:
        ewl_engine_x11.c 


Log Message:
- provide the window expose event in the callback

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- ewl_engine_x11.c    18 Feb 2007 01:18:03 -0000      1.43
+++ ewl_engine_x11.c    3 Mar 2007 00:36:10 -0000       1.44
@@ -891,6 +891,7 @@
         * let them know in case a widget is using a non-evas based draw method
         */
        Ecore_X_Event_Window_Damage *ev;
+       Ewl_Event_Window_Expose event;
        Ewl_Window *window;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
@@ -901,8 +902,13 @@
        if (!window)
                DRETURN_INT(TRUE, DLEVEL_STABLE);
 
+       event.x = ev->x;
+       event.y = ev->y;
+       event.w = ev->w;
+       event.h = ev->h;
+
        evas_damage_rectangle_add(EWL_EMBED(window)->canvas, ev->x, ev->y, 
ev->w, ev->h);
-       ewl_callback_call(EWL_WIDGET(window), EWL_CALLBACK_EXPOSE);
+       ewl_callback_call_with_event_data(EWL_WIDGET(window), 
EWL_CALLBACK_EXPOSE, &event);
 
        DRETURN_INT(TRUE, DLEVEL_STABLE);
 }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to