1
0
Fork 0

Merge pull request #101684 from bruvzg/wl_ime_upd

[Wayland] Fix excessive IME updates.
This commit is contained in:
Thaddeus Crews 2025-01-17 10:16:45 -06:00
commit d6f688b9fc
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 5 additions and 3 deletions

View File

@ -1223,10 +1223,12 @@ void DisplayServerWayland::process_events() {
Ref<WaylandThread::IMEUpdateEventMessage> ime_update_msg = msg; Ref<WaylandThread::IMEUpdateEventMessage> ime_update_msg = msg;
if (ime_update_msg.is_valid()) { if (ime_update_msg.is_valid()) {
ime_text = ime_update_msg->text; if (ime_text != ime_update_msg->text || ime_selection != ime_update_msg->selection) {
ime_selection = ime_update_msg->selection; ime_text = ime_update_msg->text;
ime_selection = ime_update_msg->selection;
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_OS_IME_UPDATE); OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_OS_IME_UPDATE);
}
} }
} }