ctlIME // Always adjust the window level of IMKCandidates.

This commit is contained in:
ShikiSuen 2022-08-21 23:25:36 +08:00
parent 002920550f
commit be43d857ba
1 changed files with 1 additions and 3 deletions

View File

@ -107,9 +107,7 @@ extension ctlInputMethod {
ctlInputMethod.ctlCandidateCurrent.reloadData() ctlInputMethod.ctlCandidateCurrent.reloadData()
// Spotlight IMK // Spotlight IMK
if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK, if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK {
mgrPrefs.adjustIMKCandidateWindowLevel
{
while ctlCandidateCurrent.windowLevel() <= client.windowLevel() { while ctlCandidateCurrent.windowLevel() <= client.windowLevel() {
ctlCandidateCurrent.setWindowLevel(UInt64(max(0, client.windowLevel() + 1000))) ctlCandidateCurrent.setWindowLevel(UInt64(max(0, client.windowLevel() + 1000)))
} }