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:
parent
fa8e8c258c
commit
19862b4138
|
@ -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)];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue