Merge pull request #86101 from GrammAcc/partial-fix-68305

[X11] Partial fix for Editor and Project Manager stealing focus on some window managers
This commit is contained in:
Rémi Verschelde 2024-03-11 23:48:07 +01:00
commit 058202e960
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 13 deletions

View File

@ -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;