PATCH: getting x11 window out of x11drv

Marcus Meissner marcus at jet.franken.de
Fri Jun 15 15:02:52 CDT 2001


Hi,

The activexproxy guys want to have the X11 window from a HWND.

GetPropA(hwnd,"WINE_X11_WINDOW") should give it :)

Ciao, Marcus

Changelog:
	add properties WINE_X11_WINDOW and WINE_X11_CLIENTWINDOW for 
	use by winelib applications who really need the X Window
	for a HWND.

Index: window.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/window.c,v
retrieving revision 1.8
diff -u -r1.8 window.c
--- window.c	2001/06/12 04:02:10	1.8
+++ window.c	2001/06/15 20:56:53
@@ -847,6 +853,9 @@
     }
 
     if (!(wndPtr = WIN_FindWndPtr(hwnd))) return FALSE;
+
+    SetPropA(hwnd,"WINE_X11_WINDOW",data->whole_window);
+    SetPropA(hwnd,"WINE_X11_CLIENTWINDOW",data->client_window);
 
     sync_window_style( display, wndPtr );
 




More information about the wine-patches mailing list