X11: Send IME update notification deferred

(cherry picked from commit bf45d3ae24)
This commit is contained in:
HolonProduction 2023-11-24 13:12:45 +01:00 committed by Rémi Verschelde
parent 511b4f822a
commit 24a383e2ec
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -3875,7 +3875,7 @@ void DisplayServerX11::_xim_preedit_draw_callback(::XIM xim, ::XPointer client_d
ds->im_selection = Point2i();
}
OS_Unix::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_OS_IME_UPDATE);
OS_Unix::get_singleton()->get_main_loop()->call_deferred(SNAME("notification"), MainLoop::NOTIFICATION_OS_IME_UPDATE);
}
}