winex11: Don't unmap off-screen windows on PropertyNotify events.

This commit is contained in:
Alexandre Julliard 2011-03-07 15:11:10 +01:00
parent fc1e8e79c2
commit b1af55d551
1 changed files with 1 additions and 1 deletions

View File

@ -2501,7 +2501,7 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
if (data->mapped && event_type != ReparentNotify) if (data->mapped && event_type != ReparentNotify)
{ {
if (((swp_flags & SWP_HIDEWINDOW) && !(new_style & WS_VISIBLE)) || if (((swp_flags & SWP_HIDEWINDOW) && !(new_style & WS_VISIBLE)) ||
(event_type != ConfigureNotify && (!event_type &&
!is_window_rect_mapped( rectWindow ) && is_window_rect_mapped( &old_window_rect ))) !is_window_rect_mapped( rectWindow ) && is_window_rect_mapped( &old_window_rect )))
unmap_window( display, data ); unmap_window( display, data );
} }