Ken Thomases : winemac: Make sure the same housekeeping is done when closing a window as is done when hiding it .

Alexandre Julliard julliard at winehq.org
Thu Oct 10 13:26:51 CDT 2013


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

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Oct  9 16:30:53 2013 -0500

winemac: Make sure the same housekeeping is done when closing a window as is done when hiding it.

---

 dlls/winemac.drv/cocoa_window.m |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m
index a48b691..7371cbc 100644
--- a/dlls/winemac.drv/cocoa_window.m
+++ b/dlls/winemac.drv/cocoa_window.m
@@ -1801,8 +1801,11 @@ void macdrv_destroy_cocoa_window(macdrv_window w)
     NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
     WineWindow* window = (WineWindow*)w;
 
+    OnMainThread(^{
+        [window doOrderOut];
+        [window close];
+    });
     [window.queue discardEventsMatchingMask:-1 forWindow:window];
-    [window close];
     [window release];
 
     [pool release];




More information about the wine-cvs mailing list