From b719eed72501f54203746cfa68d0f3c98abb9afc Mon Sep 17 00:00:00 2001 From: Naoto Kondo Date: Sun, 22 Dec 2024 05:50:49 +0900 Subject: [PATCH] Fix last character deletion in Wayland IME input --- platform/linuxbsd/wayland/wayland_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index 80381746963..8773834987b 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -2734,7 +2734,7 @@ void WaylandThread::_wp_text_input_on_done(void *data, struct zwp_text_input_v3 msg.instantiate(); msg->text = ss->ime_text_commit; ss->wayland_thread->push_message(msg); - } else if (!ss->ime_text.is_empty()) { + } else { Ref msg; msg.instantiate(); msg->text = ss->ime_text;