### Godot version

Godot 4 Beta 16

### System information

Ubuntu 22.04 Running on Vulkan Mesa Intel® UHD Graphics 620 (WHL GT2)

### Issue description


https://user-images.githubusercontent.com/63069499/215583979-e525a1fd-930f-4650-8e9f-3752100cdb72.mp4

Godot keeps clicking out of the color editor

EDIT: I did a test it seems to be single window mode

### Steps to reproduce

Go in editor settings and search for single window mode 

Enable it

Try using the color editor on any color field with single window mode

### Minimal reproduction project

N/A 
XColor col = {};
		Cursor cursor = XCreatePixmapCursor(x11_display,
				cursormask, 
				cursormask, 
				&col, &col, 0, 0);
		XFreePixmap(x11_display, cursormask);
		XFreeGC(x11_display, gc);
		if (cursor == None) {
			ERR_PRINT("FAILED CREATING CURSOR");
		}
		null_cursor = cursor;
	}
	cursor_set_shape(CURSOR_BUSY);
	
	
	
	XEvent config_event;
	while (XCheckTypedEvent(x11_display, ConfigureNotify, &config_event)) {
		_window_changed(&config_event);
	}
	events_thread.start(_poll_events_thread, this);
	_update_real_mouse_position(windows[MAIN_WINDOW_ID]);
#ifdef DBUS_ENABLED
	screensaver = memnew(FreeDesktopScreenSaver);
	screen_set_keep_on(GLOBAL_GET("display/window/energy_saving/keep_screen_on"));
	portal_desktop = memnew(FreeDesktopPortalDesktop);
#endif
	r_error = OK;
}
DisplayServerX11::~DisplayServerX11() {