Use newer X server compat API