Ken Thomases : winemac: Make macdrv_set_cocoa_window_frame() synchronous again.

Alexandre Julliard julliard at winehq.org
Thu Nov 21 14:07:46 CST 2013


Module: wine
Branch: master
Commit: 19862b4138f0a2b4584a46375bb69d8d65171f99
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=19862b4138f0a2b4584a46375bb69d8d65171f99

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Nov 20 14:01:29 2013 -0600

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m
index 8b44fec..a29f20e 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)];
     });
 }




More information about the wine-cvs mailing list