2 * X events handling functions
4 * Copyright 1993 Alexandre Julliard
13 #include "debugtools.h"
15 DECLARE_DEBUG_CHANNEL(event
)
17 /**********************************************************************/
19 EVENT_DRIVER
*EVENT_Driver
= NULL
;
21 /***********************************************************************
24 * Initialize input event handling
28 USER_Driver
->pInitialize();
30 MONITOR_Initialize(&MONITOR_PrimaryMonitor
);
32 return EVENT_Driver
->pInit();
35 /***********************************************************************
38 * Synchronize with the X server. Should not be used too often.
40 void EVENT_Synchronize( void )
42 int iWndsLocks
= WIN_SuspendWndsLock();
43 EVENT_Driver
->pSynchronize();
44 WIN_RestoreWndsLock(iWndsLocks
);
47 /**********************************************************************
50 BOOL
EVENT_CheckFocus(void)
52 return EVENT_Driver
->pCheckFocus();