ctlIME // Always adjust the window level of IMKCandidates.
This commit is contained in:
parent
002920550f
commit
be43d857ba
|
@ -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)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue