Skip to content

Commit

Permalink
Merge pull request #86101 from GrammAcc/partial-fix-68305
Browse files Browse the repository at this point in the history
[X11] Partial fix for Editor and Project Manager stealing focus on some window managers
  • Loading branch information
akien-mga committed Mar 11, 2024
2 parents 397fd1b + 8a2e440 commit 058202e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions platform/linuxbsd/x11/display_server_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 058202e

Please sign in to comment.