### 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
dlclose(xrandr_handle);
	}
	for (int i = 0; i < CURSOR_MAX; i++) {
		if (cursors[i] != None) {
			XFreeCursor(x11_display, cursors[i]);
		}
		if (img[i] != nullptr) {
			XcursorImageDestroy(img[i]);
		}
	}
	if (xim) {
		XCloseIM(xim);
	}
	XCloseDisplay(x11_display);
	if (xmbstring) {
		memfree(xmbstring);
	}
#ifdef SPEECHD_ENABLED
	memdelete(tts);
#endif
#ifdef DBUS_ENABLED
	memdelete(screensaver);
	memdelete(portal_desktop);
#endif
}
void DisplayServerX11::register_x11_driver() {
	register_create_function("x11", create_func, get_rendering_drivers_func);
}
#endif