Forráskód Böngészése

Merge pull request #72101 from bruvzg/x11_ime_unfocus

[X11] Fix IME focus return.
Rémi Verschelde 2 éve
szülő
commit
cc7aa72f01
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      platform/linuxbsd/x11/display_server_x11.cpp

+ 1 - 1
platform/linuxbsd/x11/display_server_x11.cpp

@@ -1610,7 +1610,7 @@ void DisplayServerX11::window_set_transient(WindowID p_window, WindowID p_parent
 		// a subwindow and its parent are both destroyed.
 		// a subwindow and its parent are both destroyed.
 		if (!wd_window.no_focus && !wd_window.is_popup && wd_window.focused) {
 		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) {
 			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 {
 	} else {