### 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 (items[i].separator) {
			continue;
		}
		icon_ofs = MAX(items[i].get_icon_size().width, icon_ofs);
		if (items[i].checkable_type) {
			has_check = true;
		}
	}
	if (icon_ofs > 0.0) {
		icon_ofs += theme_cache.h_separation;
	}
	float check_ofs = 0.0;
	if (has_check) {
		for (int i = 0; i < 4; i++) {
			check_ofs = MAX(check_ofs, check[i]->get_width());
			check_ofs = MAX(check_ofs, uncheck[i]->get_width());
		}
		check_ofs += theme_cache.h_separation;
	}
	Point2 ofs;
	
	for (int i = 0; i < items.size(); i++) {
		
		ofs.y += i > 0 ? theme_cache.v_separation : (float)theme_cache.v_separation / 2;
		_shape_item(i);
		Point2 item_ofs = ofs;
		Size2 icon_size = items[i].get_icon_size();
		float h = _get_item_height(i);
		if (i == mouse_over) {
			if (rtl) {