[PATCH] Small SetParent fix

gerard patel gerard.patel at asi.fr
Thu May 10 15:24:05 CDT 2001


Calling SetParent of a child window does not create a X counterpart in current Cvs
if parent = 0.
Fixes one at least of the 2 crashes I had pointed to with the User patch of 24 april.

ChangeLog:

	* dlls/x11drv/window.c
                  creates (again) a X counterpart for children windows reparented to 0

-------------- next part --------------
Index: dlls/x11drv/window.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/window.c,v
retrieving revision 1.2
diff -u -r1.2 window.c
--- dlls/x11drv/window.c	2001/05/10 03:24:00	1.2
+++ dlls/x11drv/window.c	2001/05/10 20:20:22
@@ -423,7 +423,7 @@
 
         /* Create an X counterpart for reparented top-level windows
 	     * when not in the desktop mode. */
-        if (parent == GetDesktopWindow())
+        if ((!parent) || (parent == GetDesktopWindow()))
         {
             if(root_window == DefaultRootWindow(display))
                 X11DRV_CreateWindow(wndPtr->hwndSelf);
-------------- next part --------------



More information about the wine-devel mailing list