File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
platform/linuxbsd/wayland Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1223,10 +1223,12 @@ void DisplayServerWayland::process_events() {
12231223
12241224 Ref<WaylandThread::IMEUpdateEventMessage> ime_update_msg = msg;
12251225 if (ime_update_msg.is_valid ()) {
1226- ime_text = ime_update_msg->text ;
1227- ime_selection = ime_update_msg->selection ;
1226+ if (ime_text != ime_update_msg->text || ime_selection != ime_update_msg->selection ) {
1227+ ime_text = ime_update_msg->text ;
1228+ ime_selection = ime_update_msg->selection ;
12281229
1229- OS::get_singleton ()->get_main_loop ()->notification (MainLoop::NOTIFICATION_OS_IME_UPDATE);
1230+ OS::get_singleton ()->get_main_loop ()->notification (MainLoop::NOTIFICATION_OS_IME_UPDATE);
1231+ }
12301232 }
12311233 }
12321234
You can’t perform that action at this time.
0 commit comments