[X11] Fix IME focus return.

This commit is contained in:
bruvzg 2023-01-26 10:13:51 +02:00
parent 18a2e7ff6e
commit 912c937921
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38

View file

@ -1610,7 +1610,7 @@ void DisplayServerX11::window_set_transient(WindowID p_window, WindowID p_parent
// a subwindow and its parent are both destroyed.
if (!wd_window.no_focus && !wd_window.is_popup && wd_window.focused) {
if ((xwa.map_state == IsViewable) && !wd_parent.no_focus && !wd_window.is_popup) {
XSetInputFocus(x11_display, wd_parent.x11_window, RevertToPointerRoot, CurrentTime);
XSetInputFocus(x11_display, wd_parent.x11_window, RevertToParent, CurrentTime);
}
}
} else {