Currently, the upstream only take over X11, So hard to change this and convert display to x_display by code later:
x_display = (Display* )display