Fix #139007: Input string refresh calls missing for Win IME

The update/refresh calls got removed by mistake in #138871.
This commit is contained in:
Sebastian Parborg
2025-05-19 16:06:19 +02:00
parent 5180930e0d
commit 62ccba022c

View File

@@ -489,12 +489,14 @@ void GHOST_ImeWin32::UpdateInfo(HWND window_handle)
int comp = this->GetComposition(window_handle, GCS_COMPSTR | GCS_COMPATTR, &compInfo);
/* Convert wchar to UTF8. */
if (res) {
updateUtf8Buf(resultInfo);
eventImeData.result = std::string(&resultInfo.utf8_buf[0]);
}
else {
eventImeData.result = "";
}
if (comp) {
updateUtf8Buf(compInfo);
eventImeData.composite = std::string(&compInfo.utf8_buf[0]);
eventImeData.cursor_position = compInfo.cursor_position;
eventImeData.target_start = compInfo.target_start;