From be43d857baf0ddcc3c80c9ef0681cd3754f284f2 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 21 Aug 2022 23:25:36 +0800 Subject: [PATCH] ctlIME // Always adjust the window level of IMKCandidates. --- .../ControllerModules/ctlInputMethod_HandleDisplay.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift b/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift index eb9b734a..70866837 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift @@ -107,9 +107,7 @@ extension ctlInputMethod { ctlInputMethod.ctlCandidateCurrent.reloadData() // Spotlight 視窗會擋住 IMK 選字窗,所以需要特殊處理。 - if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK, - mgrPrefs.adjustIMKCandidateWindowLevel - { + if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK { while ctlCandidateCurrent.windowLevel() <= client.windowLevel() { ctlCandidateCurrent.setWindowLevel(UInt64(max(0, client.windowLevel() + 1000))) }