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

ERR_FAIL_COND(!tts);
	tts->resume();
}
void DisplayServerX11::tts_stop() {
	ERR_FAIL_COND(!tts);
	tts->stop();
}
#endif
#ifdef DBUS_ENABLED
bool DisplayServerX11::is_dark_mode_supported() const {
	return portal_desktop->is_supported();
}
bool DisplayServerX11::is_dark_mode() const {
	switch (portal_desktop->get_appearance_color_scheme()) {
		case 1:
			
			return true;
		case 2:
			
			return false;
		default:
			
			return false;
	}
}
#endif
void DisplayServerX11::mouse_set_mode(MouseMode p_mode) {