ctlIME // Stop Spotlight from covering the IMKCandidates window.

This commit is contained in:
ShikiSuen 2022-08-17 18:44:02 +08:00
parent 4cc1d82815
commit 43609bd899
1 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,11 @@ extension ctlInputMethod {
ctlInputMethod.ctlCandidateCurrent.delegate = self
ctlInputMethod.ctlCandidateCurrent.reloadData()
// Spotlight IMK
if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK {
ctlCandidateCurrent.perform(Selector(("setWindowLevel:")), with: client.windowLevel() + 1000)
}
ctlInputMethod.ctlCandidateCurrent.visible = true
var lineHeightRect = NSRect(x: 0.0, y: 0.0, width: 16.0, height: 16.0)