### 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)

if (config_name.length() == 0) {
				class_str = "Godot_Engine";
			} else {
				class_str = config_name.utf8();
			}
		} else {
			class_str = "Godot";
		}
		classHint->res_class = class_str.ptrw();
		classHint->res_name = name_str.ptrw();
		XSetClassHint(x11_display, wd.x11_window, classHint);
		XFree(classHint);
	}
}
void DisplayServerX11::set_context(Context p_context) {
	_THREAD_SAFE_METHOD_
	context = p_context;
	for (KeyValue<WindowID, WindowData> &E : windows) {
		_update_context(E.value);
	}
}
void DisplayServerX11::set_native_icon(const String &p_filename) {
	WARN_PRINT("Native icon not supported by this display server.");
}
bool g_set_icon_error = false;
int set_icon_errorhandler(Display *dpy, XErrorEvent *ev) {
	g_set_icon_error = true;
	return 0;
}
void DisplayServerX11::set_icon(const Ref<Image> &p_icon) {