diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-11 23:48:07 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-11 23:48:07 +0100 |
commit | 058202e9602c1e3bb06e7978f3082e552b3c2e85 (patch) | |
tree | 049e64b71fb942f934de19eb9f48e2bf31992869 /platform/linuxbsd/x11/display_server_x11.cpp | |
parent | 397fd1bece80428bd911f3a0da555d6534ca5fd7 (diff) | |
parent | 8a2e4409e63be2cf460b5931df2f80cc998a590a (diff) | |
download | redot-engine-058202e9602c1e3bb06e7978f3082e552b3c2e85.tar.gz |
Merge pull request #86101 from GrammAcc/partial-fix-68305
[X11] Partial fix for Editor and Project Manager stealing focus on some window managers
Diffstat (limited to 'platform/linuxbsd/x11/display_server_x11.cpp')
-rw-r--r-- | platform/linuxbsd/x11/display_server_x11.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp index 7e7c791e7f..34aa15abbb 100644 --- a/platform/linuxbsd/x11/display_server_x11.cpp +++ b/platform/linuxbsd/x11/display_server_x11.cpp @@ -4706,19 +4706,6 @@ void DisplayServerX11::process_events() { break; } - const WindowData &wd = windows[window_id]; - - XWindowAttributes xwa; - XSync(x11_display, False); - XGetWindowAttributes(x11_display, wd.x11_window, &xwa); - - // Set focus when menu window is re-used. - // RevertToPointerRoot is used to make sure we don't lose all focus in case - // a subwindow and its parent are both destroyed. - if ((xwa.map_state == IsViewable) && !wd.no_focus && !wd.is_popup && _window_focus_check()) { - _set_input_focus(wd.x11_window, RevertToPointerRoot); - } - _window_changed(&event); } break; |