Skip to content

Commit

Permalink
Merge pull request #93682 from dsnopek/fix-text-editor-find-in-files-…
Browse files Browse the repository at this point in the history
…focus-bug

Fix text editor stealing focus from "Find in Files" dialog on X11
  • Loading branch information
akien-mga committed Jun 28, 2024
2 parents 90bd2c2 + 1289298 commit ac9181c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/linuxbsd/x11/display_server_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3040,7 +3040,7 @@ void DisplayServerX11::window_set_ime_active(const bool p_active, WindowID p_win
XWindowAttributes xwa;
XSync(x11_display, False);
XGetWindowAttributes(x11_display, wd.x11_xim_window, &xwa);
if (xwa.map_state == IsViewable && _window_focus_check()) {
if (xwa.map_state == IsViewable) {
_set_input_focus(wd.x11_xim_window, RevertToParent);
}
XSetICFocus(wd.xic);
Expand Down

0 comments on commit ac9181c

Please sign in to comment.