From 2f5d970665b5abb67e1f63fa971c2a1751052f4a Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Sat, 12 Jul 2008 11:38:41 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20432131=20=E2=80=93=20[10.4]=20Slight=20de?= =?UTF-8?q?lay=20/=20flash=20/=20lag=20when=20window=20loses=20focus.=20r?= =?UTF-8?q?=3Djosh,=20sr=3Droc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- widget/src/cocoa/nsWindowMap.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widget/src/cocoa/nsWindowMap.mm b/widget/src/cocoa/nsWindowMap.mm index 4ec867a1934..595de48ce6a 100644 --- a/widget/src/cocoa/nsWindowMap.mm +++ b/widget/src/cocoa/nsWindowMap.mm @@ -317,6 +317,8 @@ } else if ([window isSheet]) { [TopLevelWindowData activateInWindow:window]; } + + [[window contentView] setNeedsDisplay:YES]; } - (void)windowResignedKey:(NSNotification*)inNotification @@ -329,6 +331,8 @@ } else if ([window isSheet]) { [TopLevelWindowData deactivateInWindow:window]; } + + [[window contentView] setNeedsDisplay:YES]; } // The appearance of a top-level window depends on its main state (not its key