Work around some cases where parts of LE caret may flash out of sync.

This could happen after the caret was partially obscured by the alert window.
This commit is contained in:
Stephen Heumann 2018-08-12 22:25:50 -05:00
parent 9fc13e108a
commit f3519b3eef
1 changed files with 7 additions and 0 deletions

7
cdev.c
View File

@ -64,6 +64,13 @@ void DoMount(void)
snprintf(numStr, sizeof(numStr), "%u", mountURLRec.result);
AlertWindow(awResource+awCString+awButtonLayout, (Pointer)subs,
mountURLError);
/* Work around issue where parts of LE caret may flash out of sync */
CtlRecHndl ctl = GetCtlHandleFromID(wPtr, urlLine);
LEDeactivate((LERecHndl) GetCtlTitle(ctl));
if (FindTargetCtl() == ctl) {
LEActivate((LERecHndl) GetCtlTitle(ctl));
}
}
}