### Godot version

v4.1.beta.custom_build [d7af287ce]

### System information

EndeavourOS Linux, KDE plasma Wayland

### Issue description

When opening any menu or hovering above nodes or properties the editor just freezes. The console doesn't print anything when this happens. On X11 works fine. It doesn't matter if its a new project or an old one. On the beta 2 also works as normal, so it's a regression between beta 2 and now.

### Steps to reproduce

Using Wayland, create a new project and open any menu and the editor freezes.

### Minimal reproduction project

N/A
return device;
}
VkPhysicalDevice VulkanContext::get_physical_device() {
	return gpu;
}
int VulkanContext::get_swapchain_image_count() const {
	return swapchainImageCount;
}
VkQueue VulkanContext::get_graphics_queue() const {
	return graphics_queue;
}
uint32_t VulkanContext::get_graphics_queue_family_index() const {
	return graphics_queue_family_index;
}
VkFormat VulkanContext::get_screen_format() const {
	return format;
}
VkPhysicalDeviceLimits VulkanContext::get_device_limits() const {
	return gpu_props.limits;
}
RID VulkanContext::local_device_create() {
	LocalDevice ld;
	{ 
		VkResult err;
		float queue_priorities[1] = { 0.0 };
		VkDeviceQueueCreateInfo queues[2];
		queues[0].sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
		queues[0].pNext = nullptr;
		queues[0].queueFamilyIndex = graphics_queue_family_index;