### Godot version

Latest 4.0.dev (a3a42159e31db27f8ae7c1ecad6a9ed417cb05de)

### System information

Ubuntu 22.04.1 LTS

### Issue description

Ctrl+Shift+F (Find in Files) in the text editor, for example, causes my laptop to freeze consistently. I also reproduced it with F1 and Ctrl+Shift+R, as well as by using the dropdown instead of shortcuts.

### Steps to reproduce

Trivial

### Minimal reproduction project

N/A
} else {
			print_verbose("Failed loading custom cursor: " + String(cursor_file[i]));
		}
	}
	{
		
		
		Pixmap cursormask = XCreatePixmap(x11_display,
				RootWindow(x11_display, DefaultScreen(x11_display)), 1, 1, 1);
		
		XGCValues xgc;
		xgc.function = GXclear;
		GC gc = XCreateGC(x11_display, cursormask, GCFunction, &xgc);
		XFillRectangle(x11_display, cursormask, gc, 0, 0, 1, 1);
		
		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);