sudo xhost +local:root
xhost +SI:localuser:root allows the root user to access the
running X server. The current X server is indicated by the DISPLAY
environment variable.
xhost +local: does the same for every user,
so the root line is not of much use.