Browse Source

Fix last character deletion in Wayland IME input

Naoto Kondo 7 months ago
parent
commit
b719eed725
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/linuxbsd/wayland/wayland_thread.cpp

+ 1 - 1
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.instantiate();
 		msg->text = ss->ime_text_commit;
 		msg->text = ss->ime_text_commit;
 		ss->wayland_thread->push_message(msg);
 		ss->wayland_thread->push_message(msg);
-	} else if (!ss->ime_text.is_empty()) {
+	} else {
 		Ref<IMEUpdateEventMessage> msg;
 		Ref<IMEUpdateEventMessage> msg;
 		msg.instantiate();
 		msg.instantiate();
 		msg->text = ss->ime_text;
 		msg->text = ss->ime_text;