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

This commit is contained in:
Dmitry Timoshkov 2005-05-24 11:44:59 +00:00 committed by Alexandre Julliard
parent e94f091d3b
commit d5e1804c1b
1 changed files with 5 additions and 0 deletions

View File

@ -1139,6 +1139,11 @@ HWND X11DRV_SetParent( HWND hwnd, HWND parent )
/* destroy the old X windows */
destroy_whole_window( display, data );
destroy_icon_window( display, data );
if (data->managed)
{
data->managed = FALSE;
RemovePropA( data->hwnd, managed_atom );
}
}
}
else /* new top level window */