From b694437dbaf1a7ff2c522ff8b716c37855edc992 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Sat, 14 Nov 2009 19:58:40 -0800 Subject: [PATCH] Fix for flash when closing windows. Reviewed by me. --- AppKit/CPWindow/CPWindow.j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index 050fe36a5..9143c17f2 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -739,6 +739,9 @@ CPTexturedBackgroundWindowMask */ - (void)orderOut:(id)aSender { + if ([self _sharesChromeWithPlatformWindow]) + [_platformWindow orderOut:self]; + if ([_delegate respondsToSelector:@selector(windowWillClose:)]) [_delegate windowWillClose:self]; @@ -750,9 +753,6 @@ CPTexturedBackgroundWindowMask CPApp._keyWindow = nil; } - - if ([self _sharesChromeWithPlatformWindow]) - [_platformWindow orderOut:self]; } /*!