From a3a02d0f05bb9f336229bcd5657bc3b33882d83c Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 2 Jul 2002 15:07:08 +0000 Subject: [PATCH] Added resignKeyWindow so that we don't try blinking when we are no longer the key window git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14007 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTextView.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/NSTextView.m b/Source/NSTextView.m index fb3fcf0dd..838ff6634 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -3000,6 +3000,14 @@ afterString in order over charRange. */ return YES; } +- (void) resignKeyWindow +{ + if ([self shouldDrawInsertionPoint]) + { + [self updateInsertionPointStateAndRestartTimer: NO]; + } +} + - (void) drawRect: (NSRect)rect { /* TODO: Only do relayout if needed */