Ken Thomases : winemac: Take WS_EX_TOOLWINDOW into account when computing how much of a window is replaced by the Mac decorations .

Alexandre Julliard julliard at winehq.org
Thu Nov 21 14:07:47 CST 2013


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

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Nov 20 16:52:07 2013 -0600

winemac: Take WS_EX_TOOLWINDOW into account when computing how much of a window is replaced by the Mac decorations.

---

 dlls/winemac.drv/window.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index eac333a..1ad8ac2 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -137,7 +137,11 @@ static void get_mac_rect_offset(struct macdrv_win_data *data, DWORD style, RECT
         struct macdrv_window_features wf;
         get_cocoa_window_features(data, style, ex_style, &wf);
 
-        if (wf.title_bar) style_mask |= WS_CAPTION;
+        if (wf.title_bar)
+        {
+            style_mask |= WS_CAPTION;
+            ex_style_mask |= WS_EX_TOOLWINDOW;
+        }
         if (wf.shadow)
         {
             style_mask |= WS_DLGFRAME | WS_THICKFRAME;




More information about the wine-cvs mailing list