winex11.drv: Set fullscreen hint only for captionless windows

Dmitry Timoshkov dmitry at codeweavers.com
Sun Mar 16 23:24:36 CDT 2008


Hello,

this patch fixes a regression with fullscreen mode in IE.

Changelog:
    winex11.drv: Set fullscreen hint only for captionless windows.
---
 dlls/winex11.drv/winpos.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index f215f41..0d6549b 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -183,7 +183,7 @@ static void update_net_wm_states( Display *display, struct x11drv_win_data *data
     style = GetWindowLongW( data->hwnd, GWL_STYLE );
     if (style & WS_MAXIMIZE) new_state |= (1 << NET_WM_STATE_MAXIMIZED);
 
-    if (!(style & WS_MAXIMIZE) &&
+    if ((style & WS_CAPTION) != WS_CAPTION &&
         data->whole_rect.left <= 0 && data->whole_rect.right >= screen_width &&
         data->whole_rect.top <= 0 && data->whole_rect.bottom >= screen_height)
         new_state |= (1 << NET_WM_STATE_FULLSCREEN);
-- 
1.5.4.3






More information about the wine-patches mailing list