Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        Ecore_X.h ecore_x.c 


Log Message:


add get for last x,y root recorded co-ords. only works once events come in
and only works on LAST event recieved

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -3 -r1.91 -r1.92
--- Ecore_X.h   10 Jan 2005 13:11:48 -0000      1.91
+++ Ecore_X.h   11 Jan 2005 13:10:55 -0000      1.92
@@ -1184,7 +1184,8 @@
 
    EAPI void ecore_x_focus_reset(void);
    EAPI void ecore_x_events_allow_all(void);
-
+   EAPI void ecore_x_pointer_last_xy_get(int *x, int *y);
+       
 #ifdef __cplusplus
 }
 #endif
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -3 -r1.63 -r1.64
--- ecore_x.c   5 Jan 2005 23:35:16 -0000       1.63
+++ ecore_x.c   11 Jan 2005 13:10:57 -0000      1.64
@@ -1380,7 +1380,12 @@
    XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
 }
 
-
+void
+ecore_x_pointer_last_xy_get(int *x, int *y)
+{
+   if (x) *x = _ecore_x_event_last_root_x;
+   if (y) *y = _ecore_x_event_last_root_y;
+}
 /*****************************************************************************/
 /*****************************************************************************/
 /*****************************************************************************/




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to