### Godot version

v4.0.beta15.mono.official [4fa6edc88]

### System information

Linux, Xorg

### Issue description

The entire window loses focus if you ungrab focus from a Control. 
This doesn't seem to happen in Beta 14 and older betas.

### Steps to reproduce

1. Create a Control that can grab focus (tested with LineEdit and TextEdit)
2. Grab focus
3. Release focus via release_focus() or hiding the node

### Minimal reproduction project

[FocusMinimal.zip](https://github.com/godotengine/godot/files/10498175/FocusMinimal.zip)

WindowID window_id = MAIN_WINDOW_ID;
	
	for (const KeyValue<WindowID, WindowData> &E : windows) {
		if (event->xany.window == E.value.x11_window) {
			window_id = E.key;
			break;
		}
	}
	Rect2i new_rect;
	WindowData &wd = windows[window_id];
	if (wd.x11_window != event->xany.window) { 
		return;
	}
	
	wd.fullscreen = _window_fullscreen_check(window_id);
	wd.minimized = _window_minimize_check(window_id);
	wd.maximized = _window_maximize_check(window_id, "_NET_WM_STATE");
	{
		
		int x = 0, y = 0;
		Window child;
		XTranslateCoordinates(x11_display, wd.x11_window, DefaultRootWindow(x11_display), 0, 0, &x, &y, &child);