winemac: WS_EX_DLGMODALFRAME shouldn't prevent the window being resizeable.

Huw Davies huw at codeweavers.com
Thu Nov 13 03:26:22 CST 2014


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

diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index e61a517..54bd56e 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -72,12 +72,12 @@ static void get_cocoa_window_features(struct macdrv_win_data *data,
             if (ex_style & WS_EX_TOOLWINDOW) wf->utility = TRUE;
         }
     }
-    if (ex_style & WS_EX_DLGMODALFRAME) wf->shadow = TRUE;
-    else if (style & WS_THICKFRAME)
+    if (style & WS_THICKFRAME)
     {
         wf->shadow = TRUE;
         if (!data->shaped) wf->resizable = TRUE;
     }
+    else if (ex_style & WS_EX_DLGMODALFRAME) wf->shadow = TRUE;
     else if ((style & (WS_DLGFRAME|WS_BORDER)) == WS_DLGFRAME) wf->shadow = TRUE;
 }
 
-- 
1.8.0




More information about the wine-patches mailing list