- Convert ordinals to their real names.
[wine] / dlls / x11drv / x11drv.h
1 /*
2  * X11 driver definitions
3  *
4  * Copyright 1996 Alexandre Julliard
5  * Copyright 1999 Patrik Stridvall
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #ifndef __WINE_X11DRV_H
23 #define __WINE_X11DRV_H
24
25 #ifndef __WINE_CONFIG_H
26 # error You must include config.h to use this header
27 #endif
28
29 #include <stdarg.h>
30 #include <X11/Xlib.h>
31 #include <X11/Xresource.h>
32 #include <X11/Xutil.h>
33 #include <X11/Xatom.h>
34 #ifdef HAVE_LIBXXSHM
35 # include <X11/extensions/XShm.h>
36 #endif /* defined(HAVE_LIBXXSHM) */
37
38 #undef Status  /* avoid conflict with wintrnl.h */
39 typedef int Status;
40
41 #include "windef.h"
42 #include "winbase.h"
43 #include "gdi.h"
44 #include "user.h"
45 #include "win.h"
46 #include "thread.h"
47
48 #define MAX_PIXELFORMATS 8
49
50 struct tagBITMAPOBJ;
51 struct tagCURSORICONINFO;
52 struct tagPALETTEOBJ;
53 struct tagWINDOWPOS;
54
55   /* X physical pen */
56 typedef struct
57 {
58     int          style;
59     int          endcap;
60     int          linejoin;
61     int          pixel;
62     int          width;
63     char *       dashes;
64     int          dash_len;
65     int          type;          /* GEOMETRIC || COSMETIC */
66 } X_PHYSPEN;
67
68   /* X physical brush */
69 typedef struct
70 {
71     int          style;
72     int          fillStyle;
73     int          pixel;
74     Pixmap       pixmap;
75 } X_PHYSBRUSH;
76
77   /* X physical font */
78 typedef UINT     X_PHYSFONT;
79
80 typedef struct tagXRENDERINFO *XRENDERINFO;
81
82   /* X physical device */
83 typedef struct
84 {
85     HDC           hdc;
86     DC           *dc;          /* direct pointer to DC, should go away */
87     GC            gc;          /* X Window GC */
88     Drawable      drawable;
89     POINT         org;          /* DC origin relative to drawable */
90     POINT         drawable_org; /* Origin of drawable relative to screen */
91     X_PHYSFONT    font;
92     X_PHYSPEN     pen;
93     X_PHYSBRUSH   brush;
94     int           backgroundPixel;
95     int           textPixel;
96     int           exposures;   /* count of graphics exposures operations */
97     XVisualInfo  *visuals[MAX_PIXELFORMATS];
98     int           used_visuals;
99     int           current_pf;
100     XRENDERINFO   xrender;
101 } X11DRV_PDEVICE;
102
103
104   /* GCs used for B&W and color bitmap operations */
105 extern GC BITMAP_monoGC, BITMAP_colorGC;
106 extern Pixmap BITMAP_stock_pixmap;   /* pixmap for the default stock bitmap */
107
108 #define BITMAP_GC(bmp) \
109   (((bmp)->bitmap.bmBitsPixel == 1) ? BITMAP_monoGC : BITMAP_colorGC)
110
111 extern unsigned int X11DRV_server_startticks;
112
113 /* Wine driver X11 functions */
114
115 extern BOOL X11DRV_BitBlt( X11DRV_PDEVICE *physDevDst, INT xDst, INT yDst,
116                              INT width, INT height, X11DRV_PDEVICE *physDevSrc,
117                              INT xSrc, INT ySrc, DWORD rop );
118 extern BOOL X11DRV_EnumDeviceFonts( X11DRV_PDEVICE *physDev, LPLOGFONTW plf,
119                                     DEVICEFONTENUMPROC dfeproc, LPARAM lp );
120 extern LONG X11DRV_GetBitmapBits( HBITMAP hbitmap, void *bits, LONG count );
121 extern BOOL X11DRV_GetCharWidth( X11DRV_PDEVICE *physDev, UINT firstChar,
122                                    UINT lastChar, LPINT buffer );
123 extern BOOL X11DRV_GetDCOrgEx( X11DRV_PDEVICE *physDev, LPPOINT lpp );
124 extern BOOL X11DRV_GetTextExtentPoint( X11DRV_PDEVICE *physDev, LPCWSTR str,
125                                          INT count, LPSIZE size );
126 extern BOOL X11DRV_GetTextMetrics(X11DRV_PDEVICE *physDev, TEXTMETRICW *metrics);
127 extern BOOL X11DRV_PatBlt( X11DRV_PDEVICE *physDev, INT left, INT top,
128                              INT width, INT height, DWORD rop );
129 extern BOOL X11DRV_StretchBlt( X11DRV_PDEVICE *physDevDst, INT xDst, INT yDst,
130                                  INT widthDst, INT heightDst,
131                                  X11DRV_PDEVICE *physDevSrc, INT xSrc, INT ySrc,
132                                  INT widthSrc, INT heightSrc, DWORD rop );
133 extern BOOL X11DRV_LineTo( X11DRV_PDEVICE *physDev, INT x, INT y);
134 extern BOOL X11DRV_Arc( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
135                           INT bottom, INT xstart, INT ystart, INT xend,
136                           INT yend );
137 extern BOOL X11DRV_Pie( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
138                           INT bottom, INT xstart, INT ystart, INT xend,
139                           INT yend );
140 extern BOOL X11DRV_Chord( X11DRV_PDEVICE *physDev, INT left, INT top,
141                             INT right, INT bottom, INT xstart,
142                             INT ystart, INT xend, INT yend );
143 extern BOOL X11DRV_Ellipse( X11DRV_PDEVICE *physDev, INT left, INT top,
144                               INT right, INT bottom );
145 extern BOOL X11DRV_Rectangle(X11DRV_PDEVICE *physDev, INT left, INT top,
146                               INT right, INT bottom);
147 extern BOOL X11DRV_RoundRect( X11DRV_PDEVICE *physDev, INT left, INT top,
148                                 INT right, INT bottom, INT ell_width,
149                                 INT ell_height );
150 extern COLORREF X11DRV_SetPixel( X11DRV_PDEVICE *physDev, INT x, INT y,
151                                  COLORREF color );
152 extern COLORREF X11DRV_GetPixel( X11DRV_PDEVICE *physDev, INT x, INT y);
153 extern BOOL X11DRV_PaintRgn( X11DRV_PDEVICE *physDev, HRGN hrgn );
154 extern BOOL X11DRV_Polyline( X11DRV_PDEVICE *physDev,const POINT* pt,INT count);
155 extern BOOL X11DRV_Polygon( X11DRV_PDEVICE *physDev, const POINT* pt, INT count );
156 extern BOOL X11DRV_PolyPolygon( X11DRV_PDEVICE *physDev, const POINT* pt,
157                                   const INT* counts, UINT polygons);
158 extern BOOL X11DRV_PolyPolyline( X11DRV_PDEVICE *physDev, const POINT* pt,
159                                   const DWORD* counts, DWORD polylines);
160
161 extern COLORREF X11DRV_SetBkColor( X11DRV_PDEVICE *physDev, COLORREF color );
162 extern COLORREF X11DRV_SetTextColor( X11DRV_PDEVICE *physDev, COLORREF color );
163 extern BOOL X11DRV_ExtFloodFill( X11DRV_PDEVICE *physDev, INT x, INT y,
164                                    COLORREF color, UINT fillType );
165 extern BOOL X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y,
166                                  UINT flags, const RECT *lprect,
167                                  LPCWSTR str, UINT count, const INT *lpDx );
168 extern LONG X11DRV_SetBitmapBits( HBITMAP hbitmap, const void *bits, LONG count );
169 extern INT X11DRV_SetDIBitsToDevice( X11DRV_PDEVICE *physDev, INT xDest,
170                                        INT yDest, DWORD cx, DWORD cy,
171                                        INT xSrc, INT ySrc,
172                                        UINT startscan, UINT lines,
173                                        LPCVOID bits, const BITMAPINFO *info,
174                                        UINT coloruse );
175 extern BOOL X11DRV_GetDeviceGammaRamp( X11DRV_PDEVICE *physDev, LPVOID ramp );
176 extern BOOL X11DRV_SetDeviceGammaRamp( X11DRV_PDEVICE *physDev, LPVOID ramp );
177
178 /* OpenGL / X11 driver functions */
179 extern int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
180                                       const PIXELFORMATDESCRIPTOR *pppfd);
181 extern int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
182                                         int iPixelFormat, UINT nBytes,
183                                         PIXELFORMATDESCRIPTOR *ppfd);
184 extern int X11DRV_GetPixelFormat(X11DRV_PDEVICE *physDev);
185 extern BOOL X11DRV_SwapBuffers(X11DRV_PDEVICE *physDev);
186
187 /* X11 driver internal functions */
188
189 extern BOOL X11DRV_BITMAP_Init(void);
190 extern void X11DRV_FONT_Init( int *log_pixels_x, int *log_pixels_y );
191
192 struct tagBITMAPOBJ;
193 extern XImage *X11DRV_BITMAP_GetXImage( const struct tagBITMAPOBJ *bmp );
194 extern XImage *X11DRV_DIB_CreateXImage( int width, int height, int depth );
195 extern HBITMAP X11DRV_BITMAP_CreateBitmapHeaderFromPixmap(Pixmap pixmap);
196 extern HGLOBAL X11DRV_DIB_CreateDIBFromPixmap(Pixmap pixmap, HDC hdc, BOOL bDeletePixmap);
197 extern HBITMAP X11DRV_BITMAP_CreateBitmapFromPixmap(Pixmap pixmap, BOOL bDeletePixmap);
198 extern Pixmap X11DRV_DIB_CreatePixmapFromDIB( HGLOBAL hPackedDIB, HDC hdc );
199 extern Pixmap X11DRV_BITMAP_CreatePixmapFromBitmap( HBITMAP hBmp, HDC hdc );
200
201 extern RGNDATA *X11DRV_GetRegionData( HRGN hrgn, HDC hdc_lptodp );
202 extern void X11DRV_SetDrawable( HDC hdc, Drawable drawable, int mode, const POINT *org,
203                                 const POINT *drawable_org );
204 extern void X11DRV_StartGraphicsExposures( HDC hdc );
205 extern void X11DRV_EndGraphicsExposures( HDC hdc, HRGN hrgn );
206
207 extern BOOL X11DRV_SetupGCForPatBlt( X11DRV_PDEVICE *physDev, GC gc, BOOL fMapColors );
208 extern BOOL X11DRV_SetupGCForBrush( X11DRV_PDEVICE *physDev );
209 extern BOOL X11DRV_SetupGCForPen( X11DRV_PDEVICE *physDev );
210 extern BOOL X11DRV_SetupGCForText( X11DRV_PDEVICE *physDev );
211
212 extern const int X11DRV_XROPfunction[];
213
214 extern void _XInitImageFuncPtrs(XImage *);
215
216 extern int client_side_with_core;
217 extern int client_side_with_render;
218 extern int client_side_antialias_with_core;
219 extern int client_side_antialias_with_render;
220 extern int using_client_side_fonts;
221 extern void X11DRV_XRender_Init(void);
222 extern void X11DRV_XRender_Finalize(void);
223 extern BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE*, HFONT);
224 extern void X11DRV_XRender_DeleteDC(X11DRV_PDEVICE*);
225 extern BOOL X11DRV_XRender_ExtTextOut(X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
226                                       const RECT *lprect, LPCWSTR wstr,
227                                       UINT count, const INT *lpDx);
228 extern void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev);
229
230 extern void X11DRV_OpenGL_Init(Display *display);
231 extern XVisualInfo *X11DRV_setup_opengl_visual(Display *display);
232
233 /* exported dib functions for now */
234
235 /* Additional info for DIB section objects */
236 typedef struct
237 {
238     /* Windows DIB section */
239     DIBSECTION  dibSection;
240
241     /* Mapping status */
242     int         status, p_status;
243
244     /* Color map info */
245     int         nColorMap;
246     int        *colorMap;
247
248     /* Cached XImage */
249     XImage     *image;
250
251 #ifdef HAVE_LIBXXSHM
252     /* Shared memory segment info */
253     XShmSegmentInfo shminfo;
254 #endif
255
256     /* Aux buffer access function */
257     void (*copy_aux)(void*ctx, int req);
258     void *aux_ctx;
259
260     /* GDI access lock */
261     CRITICAL_SECTION lock;
262
263 } X11DRV_DIBSECTION;
264
265 extern int *X11DRV_DIB_BuildColorMap( X11DRV_PDEVICE *physDev, WORD coloruse,
266                                       WORD depth, const BITMAPINFO *info,
267                                       int *nColors );
268 extern INT X11DRV_CoerceDIBSection(X11DRV_PDEVICE *physDev,INT,BOOL);
269 extern INT X11DRV_LockDIBSection(X11DRV_PDEVICE *physDev,INT,BOOL);
270 extern void X11DRV_UnlockDIBSection(X11DRV_PDEVICE *physDev,BOOL);
271 extern INT X11DRV_CoerceDIBSection2(HBITMAP bmp,INT,BOOL);
272 extern INT X11DRV_LockDIBSection2(HBITMAP bmp,INT,BOOL);
273 extern void X11DRV_UnlockDIBSection2(HBITMAP bmp,BOOL);
274
275 extern HBITMAP X11DRV_DIB_CreateDIBSection(X11DRV_PDEVICE *physDev, BITMAPINFO *bmi, UINT usage,
276                                            LPVOID *bits, HANDLE section, DWORD offset, DWORD ovr_pitch);
277 extern void X11DRV_DIB_DeleteDIBSection(struct tagBITMAPOBJ *bmp);
278 extern INT X11DRV_DIB_Coerce(struct tagBITMAPOBJ *,INT,BOOL);
279 extern INT X11DRV_DIB_Lock(struct tagBITMAPOBJ *,INT,BOOL);
280 extern void X11DRV_DIB_Unlock(struct tagBITMAPOBJ *,BOOL);
281 void X11DRV_DIB_CopyDIBSection(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE *physDevDst,
282                                DWORD xSrc, DWORD ySrc, DWORD xDest, DWORD yDest,
283                                DWORD width, DWORD height);
284 struct _DCICMD;
285 extern INT X11DRV_DCICommand(INT cbInput, const struct _DCICMD *lpCmd, LPVOID lpOutData);
286
287 /**************************************************************************
288  * X11 GDI driver
289  */
290
291 BOOL X11DRV_GDI_Initialize( Display *display );
292 void X11DRV_GDI_Finalize(void);
293
294 extern Display *gdi_display;  /* display to use for all GDI functions */
295
296 /* X11 GDI palette driver */
297
298 #define X11DRV_PALETTE_FIXED    0x0001 /* read-only colormap - have to use XAllocColor (if not virtual) */
299 #define X11DRV_PALETTE_VIRTUAL  0x0002 /* no mapping needed - pixel == pixel color */
300
301 #define X11DRV_PALETTE_PRIVATE  0x1000 /* private colormap, identity mapping */
302 #define X11DRV_PALETTE_WHITESET 0x2000
303
304 extern Colormap X11DRV_PALETTE_PaletteXColormap;
305 extern UINT16 X11DRV_PALETTE_PaletteFlags;
306
307 extern int *X11DRV_PALETTE_PaletteToXPixel;
308 extern int *X11DRV_PALETTE_XPixelToPalette;
309
310 extern int X11DRV_PALETTE_mapEGAPixel[16];
311
312 extern int X11DRV_PALETTE_Init(void);
313 extern void X11DRV_PALETTE_Cleanup(void);
314 extern BOOL X11DRV_IsSolidColor(COLORREF color);
315
316 extern COLORREF X11DRV_PALETTE_ToLogical(int pixel);
317 extern int X11DRV_PALETTE_ToPhysical(X11DRV_PDEVICE *physDev, COLORREF color);
318
319 /* GDI escapes */
320
321 #define X11DRV_ESCAPE 6789
322 enum x11drv_escape_codes
323 {
324     X11DRV_GET_DISPLAY,   /* get X11 display for a DC */
325     X11DRV_GET_DRAWABLE,  /* get current drawable for a DC */
326     X11DRV_GET_FONT,      /* get current X font for a DC */
327 };
328
329 /**************************************************************************
330  * X11 USER driver
331  */
332
333 struct x11drv_thread_data
334 {
335     Display *display;
336     HANDLE   display_fd;
337     int      process_event_count;  /* recursion count for event processing */
338     Cursor   cursor;               /* current cursor */
339     Window   cursor_window;        /* current window that contains the cursor */
340     HWND     last_focus;           /* last window that had focus */
341     XIM      xim;                  /* input method */
342 };
343
344 extern struct x11drv_thread_data *x11drv_init_thread_data(void);
345
346 inline static struct x11drv_thread_data *x11drv_thread_data(void)
347 {
348     struct x11drv_thread_data *data = NtCurrentTeb()->driver_data;
349     if (!data) data = x11drv_init_thread_data();
350     return data;
351 }
352
353 inline static Display *thread_display(void) { return x11drv_thread_data()->display; }
354
355 extern Visual *visual;
356 extern Window root_window;
357 extern DWORD desktop_tid;
358 extern unsigned int screen_width;
359 extern unsigned int screen_height;
360 extern unsigned int screen_depth;
361 extern unsigned int text_caps;
362 extern int use_xkb;
363 extern int use_take_focus;
364 extern int managed_mode;
365
366 extern Atom wmProtocols;
367 extern Atom wmDeleteWindow;
368 extern Atom wmTakeFocus;
369 extern Atom dndProtocol;
370 extern Atom dndSelection;
371 extern Atom wmChangeState;
372 extern Atom kwmDockWindow;
373 extern Atom _kde_net_wm_system_tray_window_for;
374
375 /* X11 clipboard driver */
376
377 typedef struct tagPROPERTYFORMATMAP
378 {
379     LPCSTR lpszProperty;
380     LPCSTR lpszFormat;
381 } PROPERTYFORMATMAP;
382
383 typedef struct tagPROPERTYALIASMAP
384 {
385     LPCSTR lpszProperty;
386     UINT drvDataProperty;
387     LPCSTR lpszAlias;
388     UINT drvDataAlias;
389 } PROPERTYALIASMAP;
390
391 typedef struct tagWINE_CLIPDATA {
392     UINT        wFormatID;
393     HANDLE16    hData16;
394     HANDLE      hData32;
395     UINT        wFlags;
396     struct tagWINE_CLIPDATA *PrevData;
397     struct tagWINE_CLIPDATA *NextData;
398 } WINE_CLIPDATA, *LPWINE_CLIPDATA;
399
400 typedef HANDLE (*DRVEXPORTFUNC)(Window requestor, Atom aTarget, Atom rprop,
401     LPWINE_CLIPDATA lpData, LPDWORD lpBytes);
402 typedef HANDLE (*DRVIMPORTFUNC)(LPBYTE hData, UINT cBytes);
403
404 typedef struct tagWINE_CLIPFORMAT {
405     UINT        wFormatID;
406     LPSTR       Name;
407     UINT        drvData;
408     UINT        wFlags;
409     DRVIMPORTFUNC  lpDrvImportFunc;
410     DRVEXPORTFUNC  lpDrvExportFunc;
411     struct tagWINE_CLIPFORMAT *PrevFormat;
412     struct tagWINE_CLIPFORMAT *NextFormat;
413 } WINE_CLIPFORMAT, *LPWINE_CLIPFORMAT;
414
415 #define CF_FLAG_BUILTINFMT   1 /* Built-in windows format */
416 #define CF_FLAG_SYNTHESIZED  8 /* Implicitly converted data */
417
418 extern Atom xaClipboard;
419 extern Atom xaTargets;
420 extern Atom xaMultiple;
421
422 extern BOOL X11DRV_InitClipboard(Display *display);
423 extern void X11DRV_CLIPBOARD_ReleaseSelection(Atom selType, Window w, HWND hwnd);
424 extern INT X11DRV_CountClipboardFormats(void);
425 extern UINT X11DRV_EnumClipboardFormats(UINT wFormat);
426 extern LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupFormat(WORD wID);
427 extern LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupProperty(UINT drvData);
428 extern LPWINE_CLIPDATA X11DRV_CLIPBOARD_LookupData(DWORD wID);
429 extern UINT X11DRV_CLIPBOARD_LookupPropertyAlias(UINT drvDataProperty);
430 extern LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupAliasProperty(UINT drvDataAlias);
431
432 /* X11 event driver */
433
434 typedef enum {
435   X11DRV_INPUT_RELATIVE,
436   X11DRV_INPUT_ABSOLUTE
437 } INPUT_TYPE;
438 extern INPUT_TYPE X11DRV_EVENT_SetInputMethod(INPUT_TYPE type);
439
440 #ifdef HAVE_LIBXXF86DGA2
441 void X11DRV_EVENT_SetDGAStatus(HWND hwnd, int event_base) ;
442 #endif
443
444 /* x11drv private window data */
445 struct x11drv_win_data
446 {
447     Window  whole_window;   /* X window for the complete window */
448     Window  client_window;  /* X window for the client area */
449     Window  icon_window;    /* X window for the icon */
450     RECT    whole_rect;     /* X window rectangle for the whole window relative to parent */
451     RECT    client_rect;    /* client area relative to whole window */
452     XIC     xic;            /* X input context */
453     HBITMAP hWMIconBitmap;
454     HBITMAP hWMIconMask;
455 };
456
457 typedef struct x11drv_win_data X11DRV_WND_DATA;
458
459 extern Window X11DRV_get_client_window( HWND hwnd );
460 extern Window X11DRV_get_whole_window( HWND hwnd );
461 extern XIC X11DRV_get_ic( HWND hwnd );
462
463 inline static Window get_client_window( WND *wnd )
464 {
465     struct x11drv_win_data *data = wnd->pDriverData;
466     return data->client_window;
467 }
468
469 inline static Window get_whole_window( WND *wnd )
470 {
471     struct x11drv_win_data *data = wnd->pDriverData;
472     return data->whole_window;
473 }
474
475 inline static BOOL is_window_top_level( WND *win )
476 {
477     return (root_window == DefaultRootWindow(gdi_display) && win->parent == GetDesktopWindow());
478 }
479
480 extern void X11DRV_SetFocus( HWND hwnd );
481 extern Cursor X11DRV_GetCursor( Display *display, struct tagCURSORICONINFO *ptr );
482
483 typedef int (*x11drv_error_callback)( Display *display, XErrorEvent *event, void *arg );
484
485 extern void X11DRV_expect_error( Display *display, x11drv_error_callback callback, void *arg );
486 extern int X11DRV_check_error(void);
487 extern void X11DRV_register_window( Display *display, HWND hwnd, struct x11drv_win_data *data );
488 extern void X11DRV_set_iconic_state( WND *win );
489 extern void X11DRV_window_to_X_rect( WND *win, RECT *rect );
490 extern void X11DRV_X_to_window_rect( WND *win, RECT *rect );
491 extern void X11DRV_create_desktop_thread(void);
492 extern Window X11DRV_create_desktop( XVisualInfo *desktop_vi, const char *geometry );
493 extern void X11DRV_sync_window_style( Display *display, WND *win );
494 extern int X11DRV_sync_whole_window_position( Display *display, WND *win, int zorder );
495 extern int X11DRV_sync_client_window_position( Display *display, WND *win );
496 extern void X11DRV_set_wm_hints( Display *display, WND *win );
497
498 #endif  /* __WINE_X11DRV_H */