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 call for geting mosue xy - last_xy wasnt good enough :( =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.114 retrieving revision 1.115 diff -u -3 -r1.114 -r1.115 --- Ecore_X.h 29 Apr 2005 08:48:03 -0000 1.114 +++ Ecore_X.h 30 Apr 2005 06:55:20 -0000 1.115 @@ -1284,6 +1284,7 @@ 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); +EAPI void ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y); #ifdef __cplusplus } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -3 -r1.76 -r1.77 --- ecore_x.c 29 Apr 2005 19:36:18 -0000 1.76 +++ ecore_x.c 30 Apr 2005 06:55:20 -0000 1.77 @@ -1551,6 +1551,18 @@ if (x) *x = _ecore_x_event_last_root_x; if (y) *y = _ecore_x_event_last_root_y; } + +void +ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int *y) +{ + Window rwin, cwin; + int rx, ry, wx, wy; + unsigned int mask; + + XQueryPointer(_ecore_x_disp, win, &rwin, &cwin, &rx, &ry, &wx, &wy, &mask); + if (x) *x = wx; + if (y) *y = wy; +} /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs