add get for last x,y root recorded co-ords. only works once events come in

and only works on LAST event recieved


SVN revision: 12897
This commit is contained in:
Carsten Haitzler 2005-01-11 13:10:57 +00:00
parent 314d82cc04
commit c69ac56863
2 changed files with 8 additions and 2 deletions

View File

@ -1184,7 +1184,8 @@ EAPI int ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_A
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

View File

@ -1380,7 +1380,12 @@ ecore_x_events_allow_all(void)
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;
}
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/