Ver Fonte

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

[X11] Partial fix for Editor and Project Manager stealing focus on some window managers
Rémi Verschelde há 1 ano atrás
pai
commit
058202e960
1 ficheiros alterados com 0 adições e 13 exclusões
  1. 0 13
      platform/linuxbsd/x11/display_server_x11.cpp

+ 0 - 13
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;