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