JBR-9719: Wayland: input methods in Speed search don't work if WLInputMethodZwpTextInputV3 logger is enabled

Resetting the text iterator of each InputMethodEvent after it gets logged.
This commit is contained in:
Nikita Provotorov
2025-11-28 18:42:04 +01:00
parent caf64eeea4
commit 3355214b43

View File

@@ -699,6 +699,10 @@ final class WLInputMethodZwpTextInputV3 extends InputMethodAdapter {
String.format("awtPostIMESafely(...): posting a new InputMethodEvent=%s. this=%s.", ime, this),
new Throwable("Stacktrace")
);
// JBR-9719: reset ime's text iterator after logging
final var textIterToReset = ime.getText();
if (textIterToReset != null) textIterToReset.first();
}
SunToolkit.postEvent(SunToolkit.targetToAppContext(clientComponent), ime);