Alexandre Julliard : winex11: Use the same full screen test in is_window_managed and update_wm_states.

Alexandre Julliard julliard at winehq.org
Mon Feb 25 14:21:27 CST 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Feb 25 19:48:07 2008 +0100

winex11: Use the same full screen test in is_window_managed and update_wm_states.

---

 dlls/winex11.drv/window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 6dd9e7d..cf84389 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -103,8 +103,8 @@ BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rect )
         /* popup with sysmenu == caption are managed */
         if (style & WS_SYSMENU) return TRUE;
         /* full-screen popup windows are managed */
-        if ((window_rect->right - window_rect->left) == screen_width &&
-            (window_rect->bottom - window_rect->top) == screen_height)
+        if (window_rect->left <= 0 && window_rect->right >= screen_width &&
+            window_rect->top <= 0 && window_rect->bottom >= screen_height)
             return TRUE;
     }
     /* default: not managed */




More information about the wine-cvs mailing list