From 32e5c60f7a61e33ea34bd4337e0228885ddd3627 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 19 Aug 2022 14:17:39 +0800 Subject: [PATCH] ctlIME // +adjustIMKCandidateWindowLevel. --- .../ControllerModules/ctlInputMethod_HandleDisplay.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift b/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift index 11f92abd..248e60c5 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift @@ -107,7 +107,9 @@ extension ctlInputMethod { ctlInputMethod.ctlCandidateCurrent.reloadData() // Spotlight 視窗會擋住 IMK 選字窗,所以需要特殊處理。 - if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK { + if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK, + mgrPrefs.adjustIMKCandidateWindowLevel + { ctlCandidateCurrent.perform(Selector(("setWindowLevel:")), with: client.windowLevel() + 1000) }