At least with experimental cinnamon w/ xwayland there is a minor bug:
DISPLAY may be set to :1, despite xwayland listening on :0
in this case connections to :1 will indicate not ready/retry
in this case to mimic most X11 libraries try :0 if we get this on :1, or :1 if we are on :0
otherwise we will retry the current DISPLAY requested
to be sure this is a valid approch we also check `xset q` this must return as working with the original display to try the other one