Alexandre Julliard : winex11: Only unmap windows when the window rect changes to unmapped the first time .
Alexandre Julliard
julliard at winehq.org
Fri May 28 09:43:12 CDT 2010
Module: wine
Branch: master
Commit: 2db72e98597a4025873ded6d1e844ec5b37ad0f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2db72e98597a4025873ded6d1e844ec5b37ad0f8
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri May 28 12:16:17 2010 +0200
winex11: Only unmap windows when the window rect changes to unmapped the first time.
---
dlls/winex11.drv/window.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 8734315..3999054 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -214,7 +214,7 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec
/***********************************************************************
- * X11DRV_is_window_rect_mapped
+ * is_window_rect_mapped
*
* Check if the X whole window should be mapped based on its rectangle
*/
@@ -2329,7 +2329,8 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
if (data->mapped)
{
if (((swp_flags & SWP_HIDEWINDOW) && !(new_style & WS_VISIBLE)) ||
- (event_type != ConfigureNotify && !is_window_rect_mapped( rectWindow )))
+ (event_type != ConfigureNotify &&
+ !is_window_rect_mapped( rectWindow ) && is_window_rect_mapped( &old_window_rect )))
unmap_window( display, data );
}
More information about the wine-cvs
mailing list