On Tue Mar 3 12:12:40 2026 +0000, Byeongsik Jeon wrote:
LOWORD(hkl) is currently fixed to the system locale. If the keyboard layout language can be determined, that value should be used to replace LOWORD(hkl). In addition, the part in NtUserActivateKeyboardLayout that compares LOWORD(hkl) with the locale should also be updated. I believe it should at least be allowed when the window procedure is Unicode. The low word indicates the UI / user locale, and on Windows it can be changed separately from the keyboard layout itself. In Wine we do not support switching user locale, so if we ever want to implement that low word correctly, we would need to add support for switching this? Until then, every keyboard layout needs to use the current user locale.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10138#note_131107