From 19862b4138f0a2b4584a46375bb69d8d65171f99 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Wed, 20 Nov 2013 14:01:29 -0600 Subject: [PATCH] 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. --- dlls/winemac.drv/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 8b44fec8972..a29f20e5e0b 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -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)]; }); }