Commit a04c393a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winemac.drv: Don't assume that owner is top-level window in set_cocoa_window_properties.

parent da31ddb7
...@@ -342,6 +342,8 @@ static void set_cocoa_window_properties(struct macdrv_win_data *data) ...@@ -342,6 +342,8 @@ static void set_cocoa_window_properties(struct macdrv_win_data *data)
ex_style = GetWindowLongW(data->hwnd, GWL_EXSTYLE); ex_style = GetWindowLongW(data->hwnd, GWL_EXSTYLE);
owner = GetWindow(data->hwnd, GW_OWNER); owner = GetWindow(data->hwnd, GW_OWNER);
if (owner)
owner = GetAncestor(owner, GA_ROOT);
owner_win = macdrv_get_cocoa_window(owner, TRUE); owner_win = macdrv_get_cocoa_window(owner, TRUE);
macdrv_set_cocoa_parent_window(data->cocoa_window, owner_win); macdrv_set_cocoa_parent_window(data->cocoa_window, owner_win);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment