winemac: Make macdrv_set_cocoa_window_frame() synchronous again.

It has a non-object pointer from the caller, so it can't allow the caller
to continue until it's finished with it.  Also, it discards events from the
event queue and we don't want the caller to process them first.

Fixes brokenness introduced by 784a9139.
This commit is contained in:
Ken Thomases 2013-11-20 14:01:29 -06:00 committed by Alexandre Julliard
parent fa8e8c258c
commit 19862b4138
1 changed files with 1 additions and 1 deletions

View File

@ -2085,7 +2085,7 @@ void macdrv_set_cocoa_window_frame(macdrv_window w, const CGRect* new_frame)
{
WineWindow* window = (WineWindow*)w;
OnMainThreadAsync(^{
OnMainThread(^{
[window setFrameFromWine:NSRectFromCGRect(*new_frame)];
});
}