Add support for anonymous struct/unions on compilers that implement it.
[wine.git] / windows / event.c
blobfd6169ad4ab4df78f91fdd126994052f44375852
1 /*
2 * X events handling functions
3 *
4 * Copyright 1993 Alexandre Julliard
5 *
6 */
8 #include "message.h"
9 #include "debugtools.h"
11 DECLARE_DEBUG_CHANNEL(event)
13 /**********************************************************************/
15 EVENT_DRIVER *EVENT_Driver = NULL;
17 /***********************************************************************
18 * EVENT_Init
20 * Initialize input event handling
22 BOOL EVENT_Init(void)
24 return EVENT_Driver->pInit();
27 /***********************************************************************
28 * EVENT_Synchronize
30 * Synchronize with the X server. Should not be used too often.
32 void EVENT_Synchronize( void )
34 int iWndsLocks = WIN_SuspendWndsLock();
35 EVENT_Driver->pSynchronize();
36 WIN_RestoreWndsLock(iWndsLocks);
39 /**********************************************************************
40 * EVENT_CheckFocus
42 BOOL EVENT_CheckFocus(void)
44 return EVENT_Driver->pCheckFocus();
47 /***********************************************************************
48 * EVENT_QueryPointer
50 BOOL EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state)
52 return EVENT_Driver->pQueryPointer(posX, posY, state);