### Godot version

 Latest 4.0.dev (a3a42159e31db27f8ae7c1ecad6a9ed417cb05de)

### System information

Ubuntu 22.04.1 LTS

### Issue description

![image](https://user-images.githubusercontent.com/85438892/214476911-0ce83a43-b959-4b13-88fd-d6b9af0cd63a.png)

### Steps to reproduce

Open any script

### Minimal reproduction project

N/A
WindowID window_id = MAIN_WINDOW_ID;
	
	for (const KeyValue<WindowID, WindowData> &E : windows) {
		if (event->xany.window == E.value.x11_window) {
			window_id = E.key;
			break;
		}
	}
	Rect2i new_rect;
	WindowData &wd = windows[window_id];
	if (wd.x11_window != event->xany.window) { 
		return;
	}
	
	wd.fullscreen = _window_fullscreen_check(window_id);
	wd.minimized = _window_minimize_check(window_id);
	wd.maximized = _window_maximize_check(window_id, "_NET_WM_STATE");
	{
		
		int x = 0, y = 0;
		Window child;
		XTranslateCoordinates(x11_display, wd.x11_window, DefaultRootWindow(x11_display), 0, 0, &x, &y, &child);