winex11: Only unmap windows when the window rect changes to unmapped the first time.
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 @@
/***********************************************************************
- * 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 @@
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 );
}