[PATCH] Do not rely on data->whole_window when deciding if window needs to be switched to managed.
Michael Jung (none)
mjung at denkbrett.
Fri Oct 5 09:59:08 CDT 2007
It might not yet have been initialized.
---
dlls/winex11.drv/winpos.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index 1e7da13..04aa737 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -248,9 +248,8 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
if (!(data = X11DRV_get_win_data( hwnd ))) return FALSE;
/* check if we need to switch the window to managed */
- if (!data->managed && data->whole_window && managed_mode &&
- root_window == DefaultRootWindow( display ) &&
- data->whole_window != root_window)
+ if (!data->managed && managed_mode &&
+ GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow())
{
if (is_window_managed( hwnd, swp_flags, rectWindow ))
{
--
1.4.4.4
--------------000706050403000503010404--
More information about the wine-patches
mailing list