diff options
author | vincentdarley <vincentdarley> | 2003-11-12 17:19:17 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-11-12 17:19:17 (GMT) |
commit | a906189ba8d0deb1700017221317967a9d5dc133 (patch) | |
tree | 41d57a84a1514e36a314418a2437aa556a7bda6f /generic/tkText.c | |
parent | 0faab4b1fcb34df789147ece61ade73b3b7e5b67 (diff) | |
download | tk-a906189ba8d0deb1700017221317967a9d5dc133.zip tk-a906189ba8d0deb1700017221317967a9d5dc133.tar.gz tk-a906189ba8d0deb1700017221317967a9d5dc133.tar.bz2 |
old tk text widget bugs fixed
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index ed826db..6e0b2be 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkText.c,v 1.41 2003/11/10 21:02:35 dkf Exp $ + * RCS: @(#) $Id: tkText.c,v 1.42 2003/11/12 17:19:17 vincentdarley Exp $ */ #include "default.h" @@ -1817,7 +1817,10 @@ TextEventProc(clientData, eventPtr) */ DestroyText(textPtr); } else if ((eventPtr->type == FocusIn) || (eventPtr->type == FocusOut)) { - if (eventPtr->xfocus.detail != NotifyInferior) { + if (eventPtr->xfocus.detail != NotifyInferior + || eventPtr->xfocus.detail == NotifyAncestor + || eventPtr->xfocus.detail == NotifyNonlinear + ) { Tcl_DeleteTimerHandler(textPtr->insertBlinkHandler); if (eventPtr->type == FocusIn) { textPtr->flags |= GOT_FOCUS | INSERT_ON; |