Tk Source Code

Artifact [80c88d36]
Login

Artifact 80c88d36c2add4a134199f1d12b6cf749824fe81:

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;