Get a better current time.

SVN revision: 14439
This commit is contained in:
sebastid 2005-04-28 07:48:16 +00:00 committed by sebastid
parent 13a15bed18
commit d3fc2471b2
2 changed files with 11 additions and 2 deletions

View File

@ -65,8 +65,6 @@ typedef struct _Ecore_X_Rectangle {
#define ECORE_X_DND_VERSION 5
#define ECORE_X_CURRENT_TIME 0
extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_COPY;
extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_MOVE;
extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_LINK;
@ -843,6 +841,8 @@ EAPI void ecore_x_flush(void);
EAPI void ecore_x_sync(void);
EAPI void ecore_x_killall(Ecore_X_Window root);
EAPI void ecore_x_kill(Ecore_X_Window win);
EAPI Ecore_X_Time ecore_x_current_time_get(void);
EAPI void ecore_x_error_handler_set(void (*func) (void *data), const void *data);
EAPI void ecore_x_io_error_handler_set(void (*func) (void *data), const void *data);

View File

@ -573,6 +573,15 @@ ecore_x_kill(Ecore_X_Window win)
XKillClient(_ecore_x_disp, win);
}
/**
* Return the last event time
*/
Ecore_X_Time
ecore_x_current_time_get(void)
{
return _ecore_x_event_last_time;
}
static int
_ecore_x_fd_handler(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__)
{