winex11: Consider zero-size windows mapped even when they are positioned at 0,0.

This commit is contained in:
Alexandre Julliard 2012-01-31 17:28:34 +01:00
parent 804a9d80d8
commit 4f0f7dec99
1 changed files with 4 additions and 2 deletions

View File

@ -648,8 +648,10 @@ static inline void mirror_rect( const RECT *window_rect, RECT *rect )
static inline BOOL is_window_rect_mapped( const RECT *rect )
{
return (rect->left < virtual_screen_rect.right && rect->top < virtual_screen_rect.bottom &&
rect->right > virtual_screen_rect.left && rect->bottom > virtual_screen_rect.top);
return (rect->left < virtual_screen_rect.right &&
rect->top < virtual_screen_rect.bottom &&
max( rect->right, rect->left + 1 ) > virtual_screen_rect.left &&
max( rect->bottom, rect->top + 1 ) > virtual_screen_rect.top);
}
static inline BOOL is_window_rect_fullscreen( const RECT *rect )