1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix IME window position not taking into account window transform

This commit is contained in:
Marwen Azouzi
2025-06-11 17:43:21 +02:00
parent db57f282fa
commit 76d782d291
2 changed files with 4 additions and 0 deletions

View File

@@ -132,6 +132,8 @@ void LineEdit::_update_ime_window_position() {
if (get_window()->get_embedder()) {
pos += get_viewport()->get_popup_base_transform().get_origin();
}
// Take into account the window's transform.
pos = get_window()->get_screen_transform().xform(pos);
// The window will move to the updated position the next time the IME is updated, not immediately.
DisplayServer::get_singleton()->window_set_ime_position(pos, wid);
}