Commit af54f956 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Don't attempt to set surface for child windows in macdrv_WindowPosChanged().

The skipped code is a no-op for the child window case, except that the call to set_window_surface() synchronizes with the main thread, even with null arguments. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 733e22d0
...@@ -2021,7 +2021,7 @@ void CDECL macdrv_WindowPosChanged(HWND hwnd, HWND insert_after, UINT swp_flags, ...@@ -2021,7 +2021,7 @@ void CDECL macdrv_WindowPosChanged(HWND hwnd, HWND insert_after, UINT swp_flags,
data->window_rect = *window_rect; data->window_rect = *window_rect;
data->whole_rect = *visible_rect; data->whole_rect = *visible_rect;
data->client_rect = *client_rect; data->client_rect = *client_rect;
if (!data->ulw_layered) if (data->cocoa_window && !data->ulw_layered)
{ {
if (surface) window_surface_add_ref(surface); if (surface) window_surface_add_ref(surface);
if (new_style & WS_MINIMIZE) if (new_style & WS_MINIMIZE)
......
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