Avoid a link error from another DLL on FreeBSD.
[wine/wine-gecko.git] / windows / event.c
blobcfe650e8e78a6c35df0e86ab2f8fb6f6b3b10753
1 /*
2 * X events handling functions
3 *
4 * Copyright 1993 Alexandre Julliard
5 *
6 */
8 #include "message.h"
9 #include "user.h"
10 #include "x11drv.h"
11 #include "ttydrv.h"
12 #include "monitor.h"
13 #include "debugtools.h"
15 DECLARE_DEBUG_CHANNEL(event)
17 /**********************************************************************/
19 EVENT_DRIVER *EVENT_Driver = NULL;
21 /***********************************************************************
22 * EVENT_Init
24 * Initialize input event handling
26 BOOL EVENT_Init(void)
28 USER_Driver->pInitialize();
30 MONITOR_Initialize(&MONITOR_PrimaryMonitor);
32 return EVENT_Driver->pInit();
35 /***********************************************************************
36 * EVENT_Synchronize
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 /**********************************************************************
48 * EVENT_CheckFocus
50 BOOL EVENT_CheckFocus(void)
52 return EVENT_Driver->pCheckFocus();