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

This commit is contained in:
Ken Thomases 2013-11-20 16:52:07 -06:00 committed by Alexandre Julliard
parent 0d8800d467
commit f6a8c5b50e
1 changed files with 5 additions and 1 deletions

View File

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