Create an X connection for each thread, and process X events in the
[wine] / dlls / user / display.c
1 /*
2  * DISPLAY driver
3  *
4  * Copyright 1998 Ulrich Weigand
5  *
6  */
7
8 #include "debugtools.h"
9 #include "windef.h"
10 #include "user.h"
11 #include "wine/winuser16.h"
12
13 DEFAULT_DEBUG_CHANNEL(cursor);
14
15 #include "pshpack1.h"
16 typedef struct tagCURSORINFO
17 {
18     WORD wXMickeys;
19     WORD wYMickeys;
20 } CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
21 #include "poppack.h"
22
23 /***********************************************************************
24  *           DISPLAY_Inquire                    (DISPLAY.101)
25  */
26 WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo) 
27 {
28     lpCursorInfo->wXMickeys = 1;
29     lpCursorInfo->wYMickeys = 1;
30
31     return sizeof(CURSORINFO);
32 }
33
34 /***********************************************************************
35  *           DISPLAY_SetCursor                  (DISPLAY.102)
36  */
37 VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
38 {
39     USER_Driver.pSetCursor(lpCursor);
40 }
41
42 /***********************************************************************
43  *           DISPLAY_MoveCursor                 (DISPLAY.103)
44  */
45 VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
46 {
47     USER_Driver.pMoveCursor(wAbsX, wAbsY);
48 }
49
50 /***********************************************************************
51  *           DISPLAY_CheckCursor                  (DISPLAY.104)
52  */
53 VOID WINAPI DISPLAY_CheckCursor( void )
54 {
55     TRACE("stub\n" );
56 }
57
58 /***********************************************************************
59  *           DISPLAY_GetDriverResourceID                  (DISPLAY.450)
60  *
61  * Used by USER to check if driver contains better version of a builtin
62  * resource than USER (yes, our DISPLAY does !).
63  * wQueriedResID is the ID USER asks about.
64  * lpsResName does often contain "OEMBIN".
65  */
66 DWORD WINAPI DISPLAY_GetDriverResourceID( WORD wQueriedResID, LPSTR lpsResName )
67 {
68         if (wQueriedResID == 3)
69                 return (DWORD)1;
70
71         return (DWORD)wQueriedResID;
72 }
73
74 /***********************************************************************
75  *           UserRepaintDisable                 (DISPLAY.500)
76  */
77 VOID WINAPI UserRepaintDisable16( BOOL16 disable )
78 {
79     FIXME("stub\n");
80 }
81