Skip to content

Commit

Permalink
Merge pull request #101684 from bruvzg/wl_ime_upd
Browse files Browse the repository at this point in the history
[Wayland] Fix excessive IME updates.
  • Loading branch information
Repiteo committed Jan 17, 2025
2 parents 49481c1 + 133ea4f commit d6f688b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions platform/linuxbsd/wayland/display_server_wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,10 +1223,12 @@ void DisplayServerWayland::process_events() {

Ref<WaylandThread::IMEUpdateEventMessage> ime_update_msg = msg;
if (ime_update_msg.is_valid()) {
ime_text = ime_update_msg->text;
ime_selection = ime_update_msg->selection;
if (ime_text != ime_update_msg->text || 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);
}
}
}

Expand Down

0 comments on commit d6f688b

Please sign in to comment.