Attachment "tkText.patch" to
ticket [583286ff]
added by
jenglish
2002-07-19 07:17:08.
Index: tkText.c
===================================================================
RCS file: /cvsroot/tktoolkit/tk/generic/tkText.c,v
retrieving revision 1.28
diff -c -r1.28 tkText.c
*** tkText.c 22 Jun 2002 08:21:51 -0000 1.28
--- tkText.c 19 Jul 2002 00:09:27 -0000
***************
*** 1267,1273 ****
}
Tcl_EventuallyFree((ClientData) textPtr, DestroyText);
} else if ((eventPtr->type == FocusIn) || (eventPtr->type == FocusOut)) {
! if (eventPtr->xfocus.detail != NotifyInferior) {
Tcl_DeleteTimerHandler(textPtr->insertBlinkHandler);
if (eventPtr->type == FocusIn) {
textPtr->flags |= GOT_FOCUS | INSERT_ON;
--- 1267,1276 ----
}
Tcl_EventuallyFree((ClientData) textPtr, DestroyText);
} else if ((eventPtr->type == FocusIn) || (eventPtr->type == FocusOut)) {
! 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;