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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 13 07:40:25 CST 2014


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Nov 13 09:26:22 2014 +0000

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

---

 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;
 }
 




More information about the wine-cvs mailing list