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

Alexandre Julliard julliard at winehq.org
Tue Jan 31 14:06:19 CST 2012


Module: wine
Branch: master
Commit: 4f0f7dec9927eba84a98acd63b22f1d843d672fc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4f0f7dec9927eba84a98acd63b22f1d843d672fc

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jan 31 17:28:34 2012 +0100

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

---

 dlls/winex11.drv/x11drv.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h
index 8e3c4c3..78e7cd0 100644
--- a/dlls/winex11.drv/x11drv.h
+++ b/dlls/winex11.drv/x11drv.h
@@ -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 )




More information about the wine-cvs mailing list