Commit 2a28e4d8 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Don't set a view's frame if the backend's value hasn't changed.

With windows, the Cocoa main thread may have changed the frame and messages to that effect may be in the queue, so it can be important to reassert the "current" value and discard those messages. With views, by contrast, Cocoa will never change the frame on its own and there are no messages to discard. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent af54f956
......@@ -1094,7 +1094,7 @@ static void sync_window_position(struct macdrv_win_data *data, UINT swp_flags, c
macdrv_set_view_frame(data->cocoa_view, frame);
force_z_order = TRUE;
}
else
else if (!EqualRect(&data->whole_rect, old_whole_rect))
macdrv_set_view_frame(data->cocoa_view, frame);
}
......
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