### Godot version

v4.0.beta15.official [4fa6edc88] and v4.0.beta.custom_build [1bf7b84fb]

### System information

openSUSE Tumbleweed 20230125, KDE Plasma 5.26.5, Wayland session

### Issue description

https://user-images.githubusercontent.com/110809639/214688115-ce2c8f95-3849-4ee5-b6be-f8e58dbd8036.mp4

It's not possible to rename any node while using wayland session under my linux distro. Using Godot 4 beta15. Tried changing keyboard layout and same result. If I swith to X11 session then it works. Also beta14 doesn't have this problem with wayland session.

### Steps to reproduce

Literally try to rename any node under wayland session with beta15

### Minimal reproduction project

n/a
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) {