SetParent needs to clear 'managed' flag for former top level window

Dmitry Timoshkov dmitry at baikal.ru
Tue May 24 05:16:49 CDT 2005


Hello,

this patch fixes a regression in the app I'm working on.

The app creates a top level window, then adds WS_CHILD style to it,
and does SetParent on it with a new parent. After that a non client
area doesn't appear as it should.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    SetParent needs to clear 'managed' flag for former top level window.

--- cvs/hq/wine/dlls/x11drv/window.c	2005-05-08 14:59:31.000000000 +0900
+++ wine/dlls/x11drv/window.c	2005-05-24 19:08:46.000000000 +0900
@@ -1139,6 +1139,8 @@ HWND X11DRV_SetParent( HWND hwnd, HWND p
                 /* destroy the old X windows */
                 destroy_whole_window( display, data );
                 destroy_icon_window( display, data );
+                data->managed = FALSE;
+                RemovePropA( data->hwnd, managed_atom );
             }
         }
         else  /* new top level window */






More information about the wine-patches mailing list